FIX:setData后触发历史数据记录
This commit is contained in:
parent
5413c867e3
commit
77aacccdad
@ -275,6 +275,7 @@ class MindMap {
|
|||||||
setData(data) {
|
setData(data) {
|
||||||
this.execCommand('CLEAR_ACTIVE_NODE')
|
this.execCommand('CLEAR_ACTIVE_NODE')
|
||||||
this.command.clearHistory()
|
this.command.clearHistory()
|
||||||
|
this.command.addHistory()
|
||||||
this.renderer.renderTree = data
|
this.renderer.renderTree = data
|
||||||
this.reRender()
|
this.reRender()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -336,7 +336,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.mindMap.setData(data)
|
this.mindMap.setData(data)
|
||||||
}
|
}
|
||||||
this.manualSave()
|
// this.manualSave()
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user