From 4a774f497ea7cde8ebcf62d99e7ddca21019ee3c Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Mon, 4 Dec 2023 13:04:47 +0700 Subject: [PATCH] Update SpecialTimeStore.ts --- src/modules/09_leave/stores/SpecialTimeStore.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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);