diff --git a/src/modules/09_leave/stores/SpecialTimeStore.ts b/src/modules/09_leave/stores/SpecialTimeStore.ts index d2c467879..281eca92b 100644 --- a/src/modules/09_leave/stores/SpecialTimeStore.ts +++ b/src/modules/09_leave/stores/SpecialTimeStore.ts @@ -41,8 +41,12 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => { // paging const toDay = ref(new Date()); - const month = ref(11); - const year = ref(2023); + const monthToday = toDay.value.getMonth(); + const yearToday = toDay.value.getFullYear(); + console.log(monthToday + 1); + + const month = ref(monthToday + 1); + const year = ref(yearToday); const page = ref(1); const total = ref(0); const pageSize = ref(10);