From aa2a7a5f5d5da4d688e96be9230af9d18499a304 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 11 Jul 2025 09:33:55 +0700 Subject: [PATCH] =?UTF-8?q?fix=20CurrentPage=20=E0=B9=82=E0=B8=84=E0=B8=A3?= =?UTF-8?q?=E0=B8=87=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=AD?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=A3=E0=B8=B2=E0=B8=81=E0=B8=B3=E0=B8=A5?= =?UTF-8?q?=E0=B8=B1=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_organization/components/TableMain.vue | 6 ++++++ 1 file changed, 6 insertions(+) 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,