From 64811f4b251e8912d3d5b7dac5ab0c0f382437c8 Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 27 Jan 2026 09:33:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=A6=96=E9=A1=B5=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/Index.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 737a8f15..80d33287 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -515,16 +515,16 @@ const deviceRepairLineOptions = ref({ ] }) /** 初始化 **/ -onMounted(async () => { - // 加载 - const data = await HomeApi.getWeatherInfo() - weatherEnable.value = data.isEnable - if (data.isEnable && weatherList) { - weatherList.value = data.casts - todayWeather.value = weatherList.value[0] - weatherCity = data.city - } - production.value = await DashboardApi.getProduction(productionOverviewRange) + onMounted(async () => { + // 加载 + const data = await HomeApi.getWeatherInfo() + weatherEnable.value = data.isEnable + if (data.isEnable && weatherList) { + weatherList.value = data.casts + todayWeather.value = weatherList.value[0] + weatherCity = data.city + } + production.value = await DashboardApi.getProduction(productionOverviewRange.value) plan.value = await DashboardApi.getPlan() deviceStatusCards.value = await DashboardApi.getDevice() moldStatusCards.value = await DashboardApi.getMold()