From 9c9c8110b3329e5d900ed4e07ff8332b47b6ab0b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 25 Oct 2023 09:55:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E6=97=B6=E5=88=87=E6=8D=A2Tab=E5=88=A0=E9=99=A4=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E6=9C=89=E5=BC=82=E5=B8=B8=E6=8F=90=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/dashboard/index.vue | 6 ++++-- core/core-frontend/src/views/data-visualization/index.vue | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/dashboard/index.vue b/core/core-frontend/src/views/dashboard/index.vue index 50df9dd562..7f3d8de1f2 100644 --- a/core/core-frontend/src/views/dashboard/index.vue +++ b/core/core-frontend/src/views/dashboard/index.vue @@ -18,8 +18,10 @@ import { useCache } from '@/hooks/web/useCache' const { wsCache } = useCache() const eventCheck = e => { if (e.key === 'panel-weight' && !compareStorage(e.oldValue, e.newValue)) { - const { resourceId } = window.DataEaseBi || router.currentRoute.value.query - check(wsCache.get('panel-weight'), resourceId) + const { resourceId, opt } = window.DataEaseBi || router.currentRoute.value.query + if (!(opt && opt === 'create')) { + check(wsCache.get('panel-weight'), resourceId) + } } } const dvMainStore = dvMainStoreWithOut() diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index 1d5bd9e286..1014f32585 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -29,8 +29,10 @@ import { center } from '@antv/g2plot/lib/plots/sankey/sankey' const { wsCache } = useCache() const eventCheck = e => { if (e.key === 'screen-weight' && !compareStorage(e.oldValue, e.newValue)) { - const { dvId } = window.DataEaseBi || router.currentRoute.value.query - check(wsCache.get('screen-weight'), dvId) + const { dvId, opt } = window.DataEaseBi || router.currentRoute.value.query + if (!(opt && opt === 'create')) { + check(wsCache.get('screen-weight'), dvId) + } } } const mainCanvasCoreRef = ref(null)