From 15b84469e7836696ca856ac2f6645663956f9736 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 8 Jan 2025 15:32:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E9=87=8D=E5=81=9A?= =?UTF-8?q?=E6=92=A4=E5=9B=9E=E6=93=8D=E4=BD=9C=E9=83=A8=E5=88=86=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/snapshot.ts | 4 ++++ 1 file changed, 4 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 e984175f2d..bf5a42a165 100644 --- a/core/core-frontend/src/store/modules/data-visualization/snapshot.ts +++ b/core/core-frontend/src/store/modules/data-visualization/snapshot.ts @@ -97,6 +97,8 @@ export const snapshotStore = defineStore('snapshot', { deepCopy(this.snapshotData[this.snapshotIndex]) || getDefaultCanvasInfo() componentSnapshot.dvInfo.id = dvInfo.value.id componentSnapshot.dvInfo.pid = dvInfo.value.pid + componentSnapshot.dvInfo.dataState = dvInfo.value.dataState + componentSnapshot.dvInfo.contentId = dvInfo.value.contentId // undo 是当前没有记录 this.snapshotPublish(componentSnapshot) this.styleChangeTimes++ @@ -110,6 +112,8 @@ export const snapshotStore = defineStore('snapshot', { const snapshotInfo = deepCopy(this.snapshotData[this.snapshotIndex]) snapshotInfo.dvInfo.id = dvInfo.value.id snapshotInfo.dvInfo.pid = dvInfo.value.pid + snapshotInfo.dvInfo.dataState = dvInfo.value.dataState + snapshotInfo.dvInfo.contentId = dvInfo.value.contentId this.snapshotPublish(snapshotInfo) this.snapshotDisableTime = Date.now() + 3000 }