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;