This commit is contained in:
parent
549a01d454
commit
db06418389
@ -40,7 +40,13 @@ export const useWeatherStore = defineStore('weather', () => {
|
||||
return;
|
||||
}
|
||||
|
||||
dailyWeatherList.value = resData.dailyWeatherList;
|
||||
// 검은색 태양 아이콘 변경
|
||||
dailyWeatherList.value = resData.dailyWeatherList.map(w => {
|
||||
return {
|
||||
...w,
|
||||
icon: w.icon.replace(/n$/, 'd'),
|
||||
};
|
||||
});
|
||||
|
||||
const now = new Date();
|
||||
const todayStr = now.toISOString().split('T')[0];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user