fix:首页报错修复

liutao_branch
黄伟杰 4 months ago
parent 27442f1813
commit 64811f4b25

@ -515,7 +515,7 @@ const deviceRepairLineOptions = ref<EChartsOption>({
]
})
/** 初始化 **/
onMounted(async () => {
onMounted(async () => {
//
const data = await HomeApi.getWeatherInfo()
weatherEnable.value = data.isEnable
@ -524,7 +524,7 @@ onMounted(async () => {
todayWeather.value = weatherList.value[0]
weatherCity = data.city
}
production.value = await DashboardApi.getProduction(productionOverviewRange)
production.value = await DashboardApi.getProduction(productionOverviewRange.value)
plan.value = await DashboardApi.getPlan()
deviceStatusCards.value = await DashboardApi.getDevice()
moldStatusCards.value = await DashboardApi.getMold()

Loading…
Cancel
Save