diff --git a/public/css/custom.css b/public/css/custom.css index 73d624e..446192a 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -819,3 +819,7 @@ input:checked + .slider:before { .font-bold { font-weight: bold; } + +.pointer { + cursor: pointer; +} diff --git a/src/components/main/MainEventCalendar.vue b/src/components/main/MainEventCalendar.vue index ac549aa..5add8b5 100644 --- a/src/components/main/MainEventCalendar.vue +++ b/src/components/main/MainEventCalendar.vue @@ -25,6 +25,7 @@ :dinnerList="dinnerList" :teaTimeList="teaTimeList" :workShopList="workShopList" + @handle-click-vacation="handleClickVacation" /> @@ -67,6 +68,7 @@ import { useToastStore } from '@s/toastStore'; import { useWeatherStore } from '@/stores/useWeatherStore'; import { storeToRefs } from 'pinia'; + import router from '@/router'; import FullCalendar from '@fullcalendar/vue3'; import dayGridPlugin from '@fullcalendar/daygrid'; import interactionPlugin from '@fullcalendar/interaction'; @@ -538,6 +540,10 @@ handleCloseModal(); }; + const handleClickVacation = () => { + router.push({ path: 'Vacation' }); + }; + // 달력 뷰 변경 감지 (월 변경 시 데이터 다시 가져오기) watch( () => fullCalendarRef.value?.getApi().currentData.viewTitle, diff --git a/src/components/main/MainEventList.vue b/src/components/main/MainEventList.vue index d395d90..adb9020 100644 --- a/src/components/main/MainEventList.vue +++ b/src/components/main/MainEventList.vue @@ -10,6 +10,8 @@ (category.CMNCODVAL === 300205 && teaTimeList?.length) || (category.CMNCODVAL === 300206 && workShopList?.length) " + @click="category.CMNCODVAL == 300202 ? $emit('handleClickVacation') : ''" + :class="category.CMNCODVAL == 300202 ? 'pointer' : ''" class="border border-2 mt-3 card p-2" >