From bdbc715dc437ddbc76cda863555173bdb863f86f Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Thu, 18 Dec 2025 22:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=85=A2=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=8A=A8=E7=94=BB=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/datav/Global.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/datav/Global.vue b/src/views/datav/Global.vue index 91ac014..2e5ccd6 100644 --- a/src/views/datav/Global.vue +++ b/src/views/datav/Global.vue @@ -495,6 +495,9 @@ const getGlobalMapData = async (timeValue = time.value) => { }, { gte: range80Percent, label: "高于最大问题80%", color: "#D34343" }, ]; + clearInterval(globalMapIntervalId); + globalMapIntervalId = setInterval(mapAnimation, 2000); + mapAnimationStop(); }; const getGlobalTrendData = async (year = selectedYear.value) => { const res = await getGlobalTrend(year); @@ -573,8 +576,6 @@ const mapAnimation = () => { dataIndex: randomNum, }); }; -// 启动定时器,每隔 2 秒执行一次 -globalMapIntervalId = setInterval(mapAnimation, 2000); // 趋势动画 const globalTrendAnimation = () => { @@ -653,7 +654,6 @@ const handleClick = (params) => { const setupEventListeners = () => { cartProRankAnimtionStop(); ywlxzbAnimationStop(); - mapAnimationStop(); trendAnimationStop(); wtlxzbAnimationStop(); };