From f23c5d9a48f0d5e6b6f7af012d05c99a91b147b2 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 17 Apr 2025 20:43:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E5=8F=91=E5=B8=83=EF=BC=8C?= =?UTF-8?q?=E5=86=8D=E4=BF=AE=E6=94=B9=E4=B8=AA=E5=A4=A7=E5=B1=8F=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=BF=9D=E5=AD=98=E7=82=B9=E5=87=BB=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E5=88=B0=E5=8F=91=E5=B8=83=E7=89=88=E6=9C=AC=E5=90=8E=E6=9C=89?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/DvToolbar.vue | 1 - core/core-frontend/src/views/dashboard/index.vue | 3 +++ .../core-frontend/src/views/data-visualization/index.vue | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) 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) })