fix(leaveHistory): params
This commit is contained in:
parent
fd717bbf49
commit
ba09c07dab
2 changed files with 6 additions and 4 deletions
|
|
@ -34,7 +34,11 @@ export function usePagination(
|
||||||
if (!newPagination?.page || !newPagination?.rowsPerPage) return;
|
if (!newPagination?.page || !newPagination?.rowsPerPage) return;
|
||||||
|
|
||||||
pagination.value = { ...newPagination };
|
pagination.value = { ...newPagination };
|
||||||
if (fetchFunction) {
|
if (
|
||||||
|
fetchFunction &&
|
||||||
|
pagination.value.rowsNumber &&
|
||||||
|
pagination.value.rowsNumber > 0
|
||||||
|
) {
|
||||||
await fetchFunction(); // เรียกฟังก์ชันที่ส่งเข้ามา
|
await fetchFunction(); // เรียกฟังก์ชันที่ส่งเข้ามา
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -131,9 +131,7 @@ async function fetchDataPerson() {
|
||||||
system: (route.meta?.Key as string) || undefined,
|
system: (route.meta?.Key as string) || undefined,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
params: {
|
params: params.value,
|
||||||
...params.value,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const result = res.data.result;
|
const result = res.data.result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue