fix: Folder and Resource Selection Interaction Abnormality (#4260)

This commit is contained in:
shaohuzhang1 2025-10-27 14:30:37 +08:00 committed by GitHub
parent d147b794ce
commit 9a46cac406
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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