fix: Folder and Resource Selection Interaction Abnormality (#4260)
parent
d147b794ce
commit
9a46cac406
|
|
@ -322,9 +322,10 @@ const select = (val: any[], active: any) => {
|
||||||
TreeToFlatten([active])
|
TreeToFlatten([active])
|
||||||
.filter((item: any) => item.id != active.id)
|
.filter((item: any) => item.id != active.id)
|
||||||
.forEach((item: any) => {
|
.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()
|
multipleSelection.value = multipleTableRef.value.getSelectionRows()
|
||||||
} else {
|
} else {
|
||||||
multipleSelection.value = val
|
multipleSelection.value = val
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue