From 97fde66a79e85139b192a0a1a1da004bd2e71536 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Fri, 1 Dec 2023 09:22:38 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20Date=20selecter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/09_leave/stores/SpecialTimeStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/09_leave/stores/SpecialTimeStore.ts b/src/modules/09_leave/stores/SpecialTimeStore.ts index 54230e6d7..d2c467879 100644 --- a/src/modules/09_leave/stores/SpecialTimeStore.ts +++ b/src/modules/09_leave/stores/SpecialTimeStore.ts @@ -41,8 +41,8 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => { // paging const toDay = ref(new Date()); - const month = toDay.value.getMonth(); - const year = toDay.value.getFullYear(); + const month = ref(11); + const year = ref(2023); const page = ref(1); const total = ref(0); const pageSize = ref(10); @@ -57,7 +57,7 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => { await http .get( config.API.specialTime() + - `?year=${year}&month=${month}&page=${page.value}&pageSize=${pageSize.value}&keyword=${filter.value}` + `?year=${year.value}&month=${month.value}&page=${page.value}&pageSize=${pageSize.value}&keyword=${filter.value}` ) .then(async (res) => { let data = res.data.result.data;