From 8f8662f2df085b7a665c9abe3159f2a54f504ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Thu, 15 Aug 2024 16:25:39 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=A4=84?= =?UTF-8?q?=E4=BA=8E=E5=9B=9E=E9=80=80=E6=93=8D=E4=BD=9C=E4=B8=AD=E6=BF=80?= =?UTF-8?q?=E6=B4=BB=E8=8A=82=E7=82=B9=E5=90=8E=E6=97=A0=E6=B3=95=E5=89=8D?= =?UTF-8?q?=E8=BF=9B=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/src/core/command/Command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-mind-map/src/core/command/Command.js b/simple-mind-map/src/core/command/Command.js index eddc24d2..730cba52 100644 --- a/simple-mind-map/src/core/command/Command.js +++ b/simple-mind-map/src/core/command/Command.js @@ -104,7 +104,7 @@ class Command { return } const lastData = - this.history.length > 0 ? this.history[this.history.length - 1] : null + this.history.length > 0 ? this.history[this.activeHistoryIndex] : null const data = this.getCopyData() // 此次数据和上次一样则不重复添加 if (lastData === data) return