From b32c53f8cfdab72b132fd90f9d6709cb1a599412 Mon Sep 17 00:00:00 2001 From: ZhangMingZhao1 <1104272319@qq.com> Date: Fri, 22 Nov 2024 16:01:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E8=84=91=E5=9B=BE=E6=97=B6=E5=A6=82=E6=9E=9C=E4=B8=BA?= =?UTF-8?q?readyonly=20history=E4=B8=8D=E4=BC=9A=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simple-mind-map/index.js b/simple-mind-map/index.js index 946fc500..e1b3fca7 100644 --- a/simple-mind-map/index.js +++ b/simple-mind-map/index.js @@ -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) }