From f97e9d64eed0b23110e4c6601811234dc93fbe0d Mon Sep 17 00:00:00 2001 From: luyisha Date: Mon, 31 Jul 2023 15:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E7=BB=98=E5=88=B6=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 3accfb8..623f526 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -499,12 +499,12 @@ export default { ] }); } - // clearInterval(this.timer1) - // that.timer1 = setInterval(function () { - // myChart.clear(); - // option && myChart.setOption(option); - // run(myChart); - // }, 5000); + clearInterval(this.timer1);//这个定时器看似多余,但是注释会影响效果,先保留 + that.timer1 = setInterval(function () { + myChart.clear(); + option && myChart.setOption(option); + run(myChart); + }, 5000); }, // 今日各场馆服务人次趋势