fix bug log

This commit is contained in:
Warunee Tamkoo 2024-10-24 10:43:19 +07:00
parent 8cc1f62e17
commit 97d1323437
2 changed files with 2 additions and 3 deletions

View file

@ -220,7 +220,7 @@ async function selectedOrg(id: string) {
size: size.value ?? undefined,
search: inputSearch.value ?? undefined,
systemName: systemName.value ?? undefined,
// searchAfter: searchAfter.value ?? undefined,
searchAfter: searchAfter.value ?? undefined,
sort: sortTime.value,
startDate: new Date(startDate.value) ?? undefined,
endDate: new Date(endDate.value) ?? undefined,

View file

@ -23,7 +23,7 @@ export const useDataStore = defineStore("logStore", () => {
const size = ref<number>(30);
const logData = ref<ResLog[]>([]);
const systemName = ref<string>();
const searchAfter = ref<number>();
const searchAfter = ref<number | undefined>(undefined);
const date = ref<[Date, Date]>([new Date(), new Date()]);
async function fetchLog(
opts?: {
@ -75,7 +75,6 @@ export const useDataStore = defineStore("logStore", () => {
});
}
return {
size,
logData,