fix page === รายชื่อลูกจ้างชั่วคราว
This commit is contained in:
parent
5e7ad2e7f0
commit
de0d836518
1 changed files with 6 additions and 0 deletions
|
|
@ -238,6 +238,12 @@ async function fetchList() {
|
|||
function onClickDelete(id: string) {
|
||||
dialogRemove($q, async () => {
|
||||
showLoader();
|
||||
queryParams.page =
|
||||
queryParams.page !== 1 &&
|
||||
queryParams.page === maxPage.value &&
|
||||
rows.value.length === 1
|
||||
? queryParams.page - 1
|
||||
: queryParams.page;
|
||||
await http
|
||||
.delete(config.API.registryNew("-employee") + `/${id}`)
|
||||
.then(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue