From 16f1d688a484685045cb8a867de270e99f484aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Wed, 13 Aug 2025 15:46:43 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=A0=B7=E5=BC=8F=20(#16701)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/dashboard/index.vue | 2 ++ core/core-frontend/src/views/data-visualization/index.vue | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/dashboard/index.vue b/core/core-frontend/src/views/dashboard/index.vue index 2a608b93c3..227add0b7c 100644 --- a/core/core-frontend/src/views/dashboard/index.vue +++ b/core/core-frontend/src/views/dashboard/index.vue @@ -213,6 +213,7 @@ const initLocalCanvasData = callBack => { ) } onMounted(async () => { + document.body.style.overflow = 'hidden' dvMainStore.setCurComponent({ component: null, index: null }) dvMainStore.setHiddenListStatus(false) snapshotStore.initSnapShot() @@ -359,6 +360,7 @@ const doRecoverToPublished = () => { } onUnmounted(() => { + document.body.style.overflow = '' window.removeEventListener('storage', eventCheck) window.removeEventListener('message', winMsgHandle) }) diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index 1334d2dbe4..d5be46a1e7 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -383,6 +383,7 @@ const newWindowFromDiv = ref(false) let p = null const XpackLoaded = () => p(true) onMounted(async () => { + document.body.style.overflow = 'hidden' dvMainStore.setCurComponent({ component: null, index: null }) snapshotStore.initSnapShot() if (window.location.hash.includes('#/dvCanvas')) { @@ -472,6 +473,7 @@ onMounted(async () => { }) onUnmounted(() => { + document.body.style.overflow = '' window.removeEventListener('storage', eventCheck) window.removeEventListener('blur', releaseAttachKey) eventBus.off('handleNew', handleNew) @@ -694,9 +696,6 @@ eventBus.on('tabSort', tabSort)