diff --git a/src/modules/02_organization/components/TableMain.vue b/src/modules/02_organization/components/TableMain.vue index 7d3033dea..7f32cc047 100644 --- a/src/modules/02_organization/components/TableMain.vue +++ b/src/modules/02_organization/components/TableMain.vue @@ -6,6 +6,7 @@ import config from "@/app.config"; import http from "@/plugins/http"; import genreport from "@/plugins/genreportxlsx"; import { checkPermission } from "@/utils/permissions"; +import { updateCurrentPage } from "@/utils/function"; import { useOrganizational } from "@/modules/02_organization/store/organizational"; import { useCounterMixin } from "@/stores/mixin"; @@ -322,6 +323,11 @@ function onClickDelete(id: string) { await http .delete(config.API.orgPosMasterById(id)) .then(async () => { + reqMaster.value.page = await updateCurrentPage( + reqMaster.value.page, + totalPage.value, + posMaster.value.length + ); await Promise.all([ props.fetchDataTable?.( reqMaster.value.id,