From 6314e75397bced5722d210bc011cbe4b039c8437 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 27 Oct 2023 13:32:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0redo=E3=80=81undo?= =?UTF-8?q?=E7=94=BB=E5=B8=83=E5=8A=A8=E4=BD=9C=E7=9B=91=E6=8E=A7=E5=B9=B6?= =?UTF-8?q?=E5=8F=AF=E6=98=BE=E7=A4=BA=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/snapshot.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/core-frontend/src/store/modules/data-visualization/snapshot.ts b/core/core-frontend/src/store/modules/data-visualization/snapshot.ts index 23394ec106..9aceeb76f2 100644 --- a/core/core-frontend/src/store/modules/data-visualization/snapshot.ts +++ b/core/core-frontend/src/store/modules/data-visualization/snapshot.ts @@ -65,6 +65,7 @@ export const snapshotStore = defineStore('snapshot', { deepCopy(this.snapshotData[this.snapshotIndex]) || getDefaultCanvasInfo() // undo 是当前没有记录 this.snapshotPublish(componentSnapshot) + this.styleChangeTimes++ } }, @@ -73,6 +74,7 @@ export const snapshotStore = defineStore('snapshot', { this.snapshotIndex++ const snapshotInfo = deepCopy(this.snapshotData[this.snapshotIndex]) this.snapshotPublish(snapshotInfo) + this.styleChangeTimes++ } }, snapshotPublish(snapshotInfo) {