mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(components): tree nodesMap leak (#10195)
Co-authored-by: qiang <qw13131wang@gmail.com>
This commit is contained in:
parent
ec9cfe81dd
commit
4984d1b014
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user