From eee0b0f6d2d19b33acf32218139a5dd7c3fb2e51 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Thu, 27 Nov 2025 15:18:01 +0800 Subject: [PATCH] aa --- src/views/activityManage/activity.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/activityManage/activity.vue b/src/views/activityManage/activity.vue index 13c5c28..d3dd5d3 100644 --- a/src/views/activityManage/activity.vue +++ b/src/views/activityManage/activity.vue @@ -193,7 +193,7 @@ const editForm = ref({ }) const marketOptions = ref([]) const getActivity = async function () { - if (!hasMenuPermission(permissionMapping.view_activity)) { + if (!hasMenuPermission(menuTree.value,permissionMapping.view_activity)) { ElMessage.error('无此权限') return } @@ -223,7 +223,7 @@ const getActivity = async function () { } } const handleAdd = async function () { - if (!hasMenuPermission(permissionMapping.add_activity)) { + if (!hasMenuPermission(menuTree.value,permissionMapping.add_activity)) { ElMessage.error('无此权限') return } @@ -282,7 +282,7 @@ const handleAdd = async function () { // 新增节流 const throttleGetActivity = _.throttle(handleAdd, 5000, { trailing: false }); const handleEdit = async function () { - if (!hasMenuPermission(permissionMapping.edit_activity)) { + if (!hasMenuPermission(menuTree.value,permissionMapping.edit_activity)) { ElMessage.error('无此权限') return } @@ -335,7 +335,7 @@ const handleEdit = async function () { } } const handleDel = async function (row) { - if (!hasMenuPermission(permissionMapping.delete_activity)) { + if (!hasMenuPermission(menuTree.value,permissionMapping.delete_activity)) { ElMessage.error('无此权限') return }