From fc6c8286243cfe188915a37e1123010271124439 Mon Sep 17 00:00:00 2001 From: yoon Date: Tue, 8 Apr 2025 19:23:58 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=84=B0=ED=94=BC=EC=BB=A4?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/MainEventCalendar.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/components/main/MainEventCalendar.vue b/src/components/main/MainEventCalendar.vue index d0c26e7..ec040b0 100644 --- a/src/components/main/MainEventCalendar.vue +++ b/src/components/main/MainEventCalendar.vue @@ -41,6 +41,7 @@ class="flatpickr-calendar-only" > + @@ -67,6 +68,7 @@ import { useProjectStore } from '@/stores/useProjectStore'; import { useToastStore } from '@s/toastStore'; import { useWeatherStore } from '@/stores/useWeatherStore'; + import { useDatePicker } from '@/stores/useDatePicker'; import { storeToRefs } from 'pinia'; import router from '@/router'; import FullCalendar from '@fullcalendar/vue3'; @@ -85,14 +87,17 @@ const userStore = useUserInfoStore(); const projectStore = useProjectStore(); const weatherStore = useWeatherStore(); + const datePickerStore = useDatePicker(); const { dailyWeatherList } = storeToRefs(weatherStore); const dayjs = inject('dayjs'); const fullCalendarRef = ref(null); const workTimeComponentRef = ref(null); const calendarEvents = ref([]); + const calendarDatepicker = ref(null); //const dailyWeatherList = ref([]); + const selectedProject = ref(null); const checkedInProject = ref(null); @@ -630,6 +635,14 @@ // 스크롤 감지 이벤트 리스너 window.addEventListener('wheel', handleWheelEvent); window.addEventListener('click', colorToday); + + datePickerStore.initDatePicker( + fullCalendarRef, + async (year, month, options) => { + // 데이터 다시 불러오기 + await fetchData(); + } + ); });