diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index 4ca5b1805d..19df5bdc12 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -32,7 +32,6 @@ import { canvasSave, canvasSaveWithParams, checkCanvasChangePre, - cleanUrlAndSetDvId, findAllViewsId, initCanvasData } from '@/utils/canvasUtils' diff --git a/core/core-frontend/src/views/dashboard/index.vue b/core/core-frontend/src/views/dashboard/index.vue index 550186ffdf..552c26614c 100644 --- a/core/core-frontend/src/views/dashboard/index.vue +++ b/core/core-frontend/src/views/dashboard/index.vue @@ -303,6 +303,9 @@ const cancelHidden = item => { const doRecoverToPublished = () => { recoverToPublished({ id: dvInfo.value.id, type: 'dashboard', name: dvInfo.value.name }).then( () => { + state.resourceId = dvInfo.value.id + state.sourcePid = dvInfo.value.pid + state.opt = null initLocalCanvasData(() => { nextTick(() => { deCanvasRef.value.canvasInit(false) diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index 43de3dc4bb..d175123f1e 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -372,6 +372,12 @@ const winMsgWebParamsHandle = msgInfo => { dvMainStore.addWebParamsFilter(params) } +const afterSave = () => { + state.resourceId = dvInfo.value.id + state.sourcePid = dvInfo.value.id + state.opt = null +} + const loadFinish = ref(false) const newWindowFromDiv = ref(false) let p = null @@ -510,6 +516,9 @@ const popComponentData = computed(() => const doRecoverToPublished = () => { recoverToPublished({ id: dvInfo.value.id, type: 'dataV', name: dvInfo.value.name }).then(() => { + state.resourceId = dvInfo.value.id + state.sourcePid = dvInfo.value.pid + state.opt = null initLocalCanvasData(() => { dvMainStore.updateDvInfoCall(1) })