From 10e01aa71d494ece26214bd57017e045f13b2a08 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 06 八月 2025 09:12:34 +0800 Subject: [PATCH] fix: 修改功能模块 --- src/views/Permission/components/dialogAuthorizeV2.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/Permission/components/dialogAuthorizeV2.vue b/src/views/Permission/components/dialogAuthorizeV2.vue index d52af8e..5573b5b 100644 --- a/src/views/Permission/components/dialogAuthorizeV2.vue +++ b/src/views/Permission/components/dialogAuthorizeV2.vue @@ -308,11 +308,11 @@ } function handleConfirm() { - const selectedMenuIds = moduleTree.value.getCheckedNodes(false, true).map((x) => x.id); - console.log('selectedMenuIds: ', selectedMenuIds); - handleSelectModule(getMenuById(state.currentMenuId)); + const selectedMenuIds = moduleTree.value.getCheckedNodes().map((x) => x.id); + if (state.currentMenuId) { + handleSelectModule(getMenuById(state.currentMenuId)); + } const resourceIds = state.checkedInfo.map((x) => x.resourceId); - console.log('resourceIds: ', resourceIds); emit('onConfirm', selectedMenuIds, resourceIds); } </script> -- Gitblit v1.9.1