From f91ca6cfaaee7fe458592b6d520da701187b1ed0 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 11 Dec 2024 11:15:32 +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=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E4=BB=AA=E8=A1=A8=E6=9D=BF=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E5=81=9A=E6=92=A4=E9=94=80=E6=93=8D=E4=BD=9C=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E9=87=8D=E6=96=B0=E6=96=B0=E5=BB=BA=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#13936?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/snapshot.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 190a777e77..ec1c805b1a 100644 --- a/core/core-frontend/src/store/modules/data-visualization/snapshot.ts +++ b/core/core-frontend/src/store/modules/data-visualization/snapshot.ts @@ -94,6 +94,8 @@ export const snapshotStore = defineStore('snapshot', { this.snapshotIndex-- const componentSnapshot = deepCopy(this.snapshotData[this.snapshotIndex]) || getDefaultCanvasInfo() + componentSnapshot.dvInfo.id = dvInfo.value.id + componentSnapshot.dvInfo.pid = dvInfo.value.pid // undo 是当前没有记录 this.snapshotPublish(componentSnapshot) this.styleChangeTimes++ @@ -104,6 +106,8 @@ export const snapshotStore = defineStore('snapshot', { if (this.snapshotIndex < this.snapshotData.length - 1) { this.snapshotIndex++ const snapshotInfo = deepCopy(this.snapshotData[this.snapshotIndex]) + snapshotInfo.dvInfo.id = dvInfo.value.id + snapshotInfo.dvInfo.pid = dvInfo.value.pid this.snapshotPublish(snapshotInfo) this.styleChangeTimes++ } @@ -114,7 +118,6 @@ export const snapshotStore = defineStore('snapshot', { dvMainStore.setCanvasViewInfo(snapshotInfo.canvasViewInfo) dvMainStore.setNowPanelJumpInfoInner(snapshotInfo.nowPanelJumpInfo) dvMainStore.setNowPanelTrackInfo(snapshotInfo.nowPanelTrackInfo) - dvMainStore.updateCurDvInfo(snapshotInfo.dvInfo) const curCacheViewIdInfo = deepCopy(this.cacheViewIdInfo) this.cacheViewIdInfo = snapshotInfo.cacheViewIdInfo