FIX:setData后触发历史数据记录

This commit is contained in:
wanglin2 2023-04-01 09:30:38 +08:00
parent 5413c867e3
commit 77aacccdad
2 changed files with 2 additions and 1 deletions

View File

@ -275,6 +275,7 @@ class MindMap {
setData(data) {
this.execCommand('CLEAR_ACTIVE_NODE')
this.command.clearHistory()
this.command.addHistory()
this.renderer.renderTree = data
this.reRender()
}

View File

@ -336,7 +336,7 @@ export default {
} else {
this.mindMap.setData(data)
}
this.manualSave()
// this.manualSave()
},
/**