mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
fix: 解决初始化脑图时如果为readyonly history不会初始化的问题
This commit is contained in:
parent
b8df51eb02
commit
b32c53f8cf
@ -489,6 +489,9 @@ class MindMap {
|
||||
this.execCommand('CLEAR_ACTIVE_NODE')
|
||||
}
|
||||
this.opt.readonly = isReadonly
|
||||
if (!isReadonly) {
|
||||
this.command.originAddHistory()
|
||||
}
|
||||
this.emit('mode_change', mode)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user