This commit is contained in:
Teo
2025-08-14 01:58:00 +08:00
parent 606722f19e
commit 3158dc84f7
99 changed files with 620 additions and 554 deletions

View File

@ -80,12 +80,12 @@ const goHome = () => {
};
//获取天气
const getweatherData = async () => {
const res = await getweatherList(currentProject.value.id);
const res = await getweatherList(currentProject.value?.id);
weatherData.value = res.data;
};
//获取生产天数
const getProductionDays = async () => {
const res = await getSafetyDay(currentProject.value.id);
const res = await getSafetyDay(currentProject.value?.id);
safetyDay.value = res.data.safetyDay.toLocaleString();
};
//获取白天或夜晚