แก้ไข Date selecter
This commit is contained in:
parent
ef21947250
commit
97fde66a79
1 changed files with 3 additions and 3 deletions
|
|
@ -41,8 +41,8 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => {
|
|||
|
||||
// paging
|
||||
const toDay = ref<Date>(new Date());
|
||||
const month = toDay.value.getMonth();
|
||||
const year = toDay.value.getFullYear();
|
||||
const month = ref<number>(11);
|
||||
const year = ref<number>(2023);
|
||||
const page = ref<number>(1);
|
||||
const total = ref<number>(0);
|
||||
const pageSize = ref<number>(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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue