Skip to content

Commit 9a46cac

Browse files
authored
fix: Folder and Resource Selection Interaction Abnormality (#4260)
1 parent d147b79 commit 9a46cac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/views/system/resource-authorization/component/PermissionTable.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,10 @@ const select = (val: any[], active: any) => {
322322
TreeToFlatten([active])
323323
.filter((item: any) => item.id != active.id)
324324
.forEach((item: any) => {
325-
multipleTableRef.value?.toggleRowSelection(item, true)
325+
if (multipleSelection.value.some((select) => item.id == select.id)) {
326+
multipleTableRef.value?.toggleRowSelection(item, true)
327+
}
326328
})
327-
328329
multipleSelection.value = multipleTableRef.value.getSelectionRows()
329330
} else {
330331
multipleSelection.value = val

0 commit comments

Comments
 (0)