From f18bc15d912d4d05643057b954b1774af763c692 Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Tue, 8 Apr 2025 01:11:39 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=A0=EC=94=A8=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=BB=A4=EC=8A=A4=ED=85=80=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EA=B0=81=20=EB=9D=BC=EC=9A=B0?= =?UTF-8?q?=ED=84=B0=20name=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/MainEventCalendar.vue | 5 ++++- src/router/index.js | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/main/MainEventCalendar.vue b/src/components/main/MainEventCalendar.vue index ddf1d4b..489c622 100644 --- a/src/components/main/MainEventCalendar.vue +++ b/src/components/main/MainEventCalendar.vue @@ -545,8 +545,11 @@ const theDayWeatherInfo = dailyWeatherList.value.find(weather => weather.date === dateStr); if (theDayWeatherInfo) { + let weatherIconUrl = `https://openweathermap.org/img/wn/${theDayWeatherInfo.icon}.png`; + if (theDayWeatherInfo.icon === '01d' || theDayWeatherInfo.icon === '01n') { + weatherIconUrl = '/img/icons/sunny-custom.png'; + } // 날씨 이미지 세팅 - const weatherIconUrl = `https://openweathermap.org/img/wn/${theDayWeatherInfo.icon}.png`; const weatherEl = document.createElement('img'); weatherEl.src = weatherIconUrl; weatherEl.alt = theDayWeatherInfo.description; diff --git a/src/router/index.js b/src/router/index.js index 269c4ff..f0e7e0b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -22,6 +22,7 @@ const routes = [ }, { path: 'write', + name: 'BoardWrite', component: () => import('@v/board/BoardWrite.vue'), }, { @@ -44,6 +45,7 @@ const routes = [ }, { path: '/wordDict', + name: 'WordDict', component: () => import('@v/wordDict/wordDict.vue'), meta: { requiresAuth: true }, }, @@ -73,31 +75,37 @@ const routes = [ }, { path: '/voteboard', + name: 'VoteBoard', component: () => import('@v/voteboard/TheVoteBoard.vue'), meta: { requiresAuth: true }, children: [ { path: '', + name: 'VoteBoardList', component: () => import('@v/voteboard/voteBoardList.vue'), }, { path: 'write', + name: 'VoteboardWrite', component: () => import('@v/voteboard/voteboardWrite.vue'), }, ], }, { path: '/projectlist', + name: 'Projectlist', component: () => import('@v/projectlist/TheProjectList.vue'), meta: { requiresAuth: true }, }, { path: '/commuters', + name: 'Commuters', component: () => import('@v/commuters/TheCommuters.vue'), meta: { requiresAuth: true }, }, { path: '/authorization', + name: 'Authorization', component: () => import('@v/admin/TheAuthorization.vue'), meta: { requiresAuth: true }, },