diff --git a/src/stores/useWeatherStore.js b/src/stores/useWeatherStore.js index 31fac05..cfc262b 100644 --- a/src/stores/useWeatherStore.js +++ b/src/stores/useWeatherStore.js @@ -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];