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 29eca43066..92c1a4eb0c 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -28,8 +28,10 @@ import { useCache } from '@/hooks/web/useCache' 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)