fix(ข้อมูลการประเมิน):sort Pagination
This commit is contained in:
parent
73d03def0b
commit
27622b86a9
9 changed files with 150 additions and 390 deletions
|
|
@ -39,9 +39,16 @@ export function usePagination(
|
|||
}
|
||||
}
|
||||
|
||||
async function checkAndUpdatePage(totalRows: number) {
|
||||
if (totalRows === 1 && pagination.value.page > 1) {
|
||||
pagination.value.page = pagination.value.page - 1;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
pagination,
|
||||
params,
|
||||
onRequest,
|
||||
checkAndUpdatePage,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue