fix: 天气显示错误

This commit is contained in:
Snowykami 2024-04-29 07:35:17 +08:00 committed by GitHub
parent 269dd5ced2
commit 8f906f2d12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,7 @@ let daysStandard = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'fri
let todayDay = new Date().getDay()
let days = [localData['today'], localData['tomorrow']]
for (let i = 0; i < 5; i++) {
days.push(localData[daysStandard[(todayDay) % 7]])
days.push(localData[daysStandard[(todayDay+2+i) % 7]])
}
weatherDaily['daily'].forEach(
(item, index) => {