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 }, },