fix: 解决初始化脑图时如果为readyonly history不会初始化的问题

This commit is contained in:
ZhangMingZhao1 2024-11-22 16:01:25 +08:00
parent b8df51eb02
commit b32c53f8cf

View File

@ -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)
}