From b0055b61ed81e485f79e6f2cc1396f69f2902795 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 29 Nov 2024 16:34:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=B0=E5=BB=BA=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=97=B6=EF=BC=8C=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=88=B6=E7=BA=A7=E7=9B=AE=E5=BD=95=E4=B8=BA=E6=9C=80=E9=AB=98?= =?UTF-8?q?=E5=B1=82=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/components/dashboard/DbToolbar.vue | 4 ++-- .../src/components/data-visualization/DvToolbar.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index 52633ab623..5ec26dba75 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -199,11 +199,10 @@ const saveCanvasWithCheck = () => { appData: appData.value } nextTick(() => { - console.log('===test333') resourceAppOpt.value.init(params) }) } else { - const params = { name: dvInfo.value.name, leaf: true, id: dvInfo.value.pid } + const params = { name: dvInfo.value.name, leaf: true, id: dvInfo.value.pid || '0' } resourceGroupOpt.value.optInit('leaf', params, 'newLeaf', true) return } @@ -316,6 +315,7 @@ onBeforeUnmount(() => { eventBus.off('preview', previewInner) eventBus.off('save', saveCanvasWithCheck) eventBus.off('clearCanvas', clearCanvas) + dvMainStore.setAppDataInfo(null) }) const openDataBoardSetting = () => { dvMainStore.setCurComponent({ component: null, index: null }) diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index 264397900d..f8882fbe79 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -146,11 +146,10 @@ const saveCanvasWithCheck = () => { appData: appData.value } nextTick(() => { - console.log('===test444') resourceAppOpt.value.init(params) }) } else { - const params = { name: dvInfo.value.name, leaf: true, id: dvInfo.value.pid } + const params = { name: dvInfo.value.name, leaf: true, id: dvInfo.value.pid || '0' } resourceGroupOpt.value.optInit('leaf', params, 'newLeaf', true) } return @@ -278,6 +277,7 @@ onBeforeUnmount(() => { eventBus.off('preview', preview) eventBus.off('save', saveCanvasWithCheck) eventBus.off('clearCanvas', clearCanvas) + dvMainStore.setAppDataInfo(null) }) const openOuterParamsSet = () => {