diff --git a/src/components/main/MainEventCalendar.vue b/src/components/main/MainEventCalendar.vue index ec040b0..b2ff95c 100644 --- a/src/components/main/MainEventCalendar.vue +++ b/src/components/main/MainEventCalendar.vue @@ -97,7 +97,6 @@ const calendarDatepicker = ref(null); //const dailyWeatherList = ref([]); - const selectedProject = ref(null); const checkedInProject = ref(null); @@ -587,7 +586,7 @@ }; const handleClickVacation = () => { - router.push({ path: 'Vacation' }); + router.push('/vacation'); }; // 달력 뷰 변경 감지 (월 변경 시 데이터 다시 가져오기) @@ -606,7 +605,7 @@ selectedProject.value = newProject.PROJCTSEQ; checkedInProject.value = newProject; } - } + }, ); onMounted(async () => { @@ -636,13 +635,10 @@ window.addEventListener('wheel', handleWheelEvent); window.addEventListener('click', colorToday); - datePickerStore.initDatePicker( - fullCalendarRef, - async (year, month, options) => { - // 데이터 다시 불러오기 - await fetchData(); - } - ); + datePickerStore.initDatePicker(fullCalendarRef, async (year, month, options) => { + // 데이터 다시 불러오기 + await fetchData(); + }); });