Browse Source

优化更改

develop
fuguobin 1 year ago
parent
commit
31088bdb2e
  1. 2
      src/views/monitoring/components/header.vue

2
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();

Loading…
Cancel
Save