From 31088bdb2e077c8ca85be48de878007636cc69a8 Mon Sep 17 00:00:00 2001 From: fuguobin Date: Fri, 17 Nov 2023 17:30:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitoring/components/header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/monitoring/components/header.vue b/src/views/monitoring/components/header.vue index 150ef99..a775a0f 100644 --- a/src/views/monitoring/components/header.vue +++ b/src/views/monitoring/components/header.vue @@ -267,7 +267,7 @@ function getWeatherData() { //获取天气 getWeather().then((res: any) => { if (res.code === 200) { - if (isCurrentRoute) { + if (isCurrentRoute.value) { timer.value = setTimeout(async () => { await (timer.value && clearTimeout(timer.value)); await getWeatherData();