From 5d28c26fa9ab8ec5d32fa9c355d78bfc289877cd Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 16 Jun 2025 16:16:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E3=80=81=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=B3=E4=BD=BF=E5=85=B3=E9=97=AD=E4=BA=86=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=8F=90=E7=A4=BA=EF=BC=8C=E4=BB=8D=E7=84=B6?= =?UTF-8?q?=E4=BC=9A=E6=9C=89loading=E9=81=AE=E7=BD=A9=E5=B1=82=20#16247?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/views/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 8153baaa8f..da984ff529 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -63,6 +63,7 @@ const dvMainStore = dvMainStoreWithOut() const { emitter } = useEmitt() const dePreviewPopDialogRef = ref(null) let innerRefreshTimer = null +let innerSearchCount = 0 const appStore = useAppStoreWithOut() const appearanceStore = useAppearanceStoreWithOut() const isDataEaseBi = computed(() => appStore.getIsDataEaseBi) @@ -240,6 +241,7 @@ const buildInnerRefreshTimer = ( innerRefreshTimer = setInterval(() => { clearViewLinkage() queryData() + innerSearchCount++ }, timerRefreshTime) } } @@ -852,7 +854,11 @@ onMounted(() => { // 1.开启仪表板刷新 2.首次加载(searchCount =0 )3.正在请求数据 则显示加载状态 const loadingFlag = computed(() => { - return (canvasStyleData.value.refreshViewLoading || searchCount.value === 0) && loading.value + return ( + (canvasStyleData.value.refreshViewLoading || + (searchCount.value === 0 && innerSearchCount === 0)) && + loading.value + ) }) const chartAreaShow = computed(() => {