From db064183895c059507b2c0a232e41a7b0180900d Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Fri, 11 Apr 2025 10:44:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=84=EC=9D=B4=EC=BD=98=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/useWeatherStore.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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];