From 9a46cac406963ecca1c4c32413463a264be50136 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 27 Oct 2025 14:30:37 +0800 Subject: [PATCH] fix: Folder and Resource Selection Interaction Abnormality (#4260) --- .../resource-authorization/component/PermissionTable.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/views/system/resource-authorization/component/PermissionTable.vue b/ui/src/views/system/resource-authorization/component/PermissionTable.vue index 7ed9b2c8c..569777150 100644 --- a/ui/src/views/system/resource-authorization/component/PermissionTable.vue +++ b/ui/src/views/system/resource-authorization/component/PermissionTable.vue @@ -322,9 +322,10 @@ const select = (val: any[], active: any) => { TreeToFlatten([active]) .filter((item: any) => item.id != active.id) .forEach((item: any) => { - multipleTableRef.value?.toggleRowSelection(item, true) + if (multipleSelection.value.some((select) => item.id == select.id)) { + multipleTableRef.value?.toggleRowSelection(item, true) + } }) - multipleSelection.value = multipleTableRef.value.getSelectionRows() } else { multipleSelection.value = val