fix(components): tree nodesMap leak (#10195)

Co-authored-by: qiang <qw13131wang@gmail.com>
This commit is contained in:
Simon He
2024-08-18 15:27:34 +08:00
committed by GitHub
parent ec9cfe81dd
commit 4984d1b014

View File

@@ -103,6 +103,7 @@ export default class TreeStore {
setData(newVal: TreeData): void {
const instanceChanged = newVal !== this.root.data
if (instanceChanged) {
this.nodesMap = {}
this.root.setData(newVal)
this._initDefaultCheckedNodes()
} else {