diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index 059639c726..264ce39973 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -193,6 +193,8 @@ const saveResource = () => { initCanvasData(dvInfo.value.id, 'dashboard', () => { useEmitt().emitter.emit('refresh-dataset-selector') resourceAppOpt.value.close() + dvMainStore.setAppDataInfo(null) + snapshotStore.resetSnapshot() }) } }) diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index 389b8ceeda..75eae70f68 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -137,6 +137,8 @@ const saveResource = () => { initCanvasData(dvInfo.value.id, 'dataV', () => { useEmitt().emitter.emit('refresh-dataset-selector') resourceAppOpt.value.close() + dvMainStore.setAppDataInfo(null) + snapshotStore.resetSnapshot() }) } }) 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 e4d9ec3cfa..ea9e798e46 100644 --- a/core/core-frontend/src/store/modules/data-visualization/snapshot.ts +++ b/core/core-frontend/src/store/modules/data-visualization/snapshot.ts @@ -138,6 +138,18 @@ export const snapshotStore = defineStore('snapshot', { resetStyleChangeTimes() { this.styleChangeTimes = 0 }, + resetSnapshot() { + this.styleChangeTimes = -1 + this.cacheStyleChangeTimes = 0 + this.snapshotCacheTimes = 0 + this.cacheViewIdInfo = { + snapshotCacheViewCalc: [], + snapshotCacheViewRender: [] + } + this.snapshotData = [] + this.snapshotIndex = -1 + this.recordSnapshot() + }, recordSnapshot() { this.styleChangeTimes = ++this.styleChangeTimes diff --git a/core/core-frontend/src/views/template-market/index.vue b/core/core-frontend/src/views/template-market/index.vue index d3527f2a99..10767ca7f9 100644 --- a/core/core-frontend/src/views/template-market/index.vue +++ b/core/core-frontend/src/views/template-market/index.vue @@ -81,6 +81,14 @@ :value="item.value" /> + + +