From a066e84fe6847eff79d44cbe7ccd45c99ff68059 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Thu, 1 Feb 2024 19:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=AE=9A=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/overview/components/UPFFlow/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/dashboard/overview/components/UPFFlow/index.vue b/src/views/dashboard/overview/components/UPFFlow/index.vue index 2800f846..4d920413 100644 --- a/src/views/dashboard/overview/components/UPFFlow/index.vue +++ b/src/views/dashboard/overview/components/UPFFlow/index.vue @@ -66,7 +66,7 @@ function fnDesign(container: HTMLElement | undefined, option: EChartsOption) { //渲染速率图 function initPicture() { - clearTimeout(timeoutId.value); + // clearTimeout(timeoutId.value); let queryArr: any = []; const initTime: Date = new Date(); @@ -77,9 +77,9 @@ function initPicture() { queryArr = [parseDateToStr(startTime), parseDateToStr(endTime)]; listUPFData(queryArr).then(res => { - timeoutId.value = setTimeout(() => { - initPicture(); // 5秒后再次获取数据 - }, 5000); + // timeoutId.value = setTimeout(() => { + // initPicture(); // 5秒后再次获取数据 + // }, 5000); let timeArr: any = []; let upValue: any = []; let downValue: any = []; @@ -225,7 +225,7 @@ onMounted(() => { /**组件实例被卸载之后调用 */ onUnmounted(() => { - clearTimeout(timeoutId.value); + // clearTimeout(timeoutId.value); });