From 1ec4a97538ff6f5645e4f9b60d5802c37b614435 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 21 Aug 2025 18:17:55 +0700 Subject: [PATCH] =?UTF-8?q?fix=20bug=20=3D=3D>=20=E0=B9=80=E0=B8=9B?= =?UTF-8?q?=E0=B8=A5=E0=B8=B5=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_leave/components/Table.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/modules/05_leave/components/Table.vue b/src/modules/05_leave/components/Table.vue index 7e9357a..d9797b5 100644 --- a/src/modules/05_leave/components/Table.vue +++ b/src/modules/05_leave/components/Table.vue @@ -88,13 +88,16 @@ function updatePagination(p: number, ps: number) { /** function updatePageSize*/ function updatePageSize(newPageSize: any) { - currentPage.value = 1; pagination.value.rowsPerPage = newPageSize.rowsPerPage; } -watch([() => currentPage.value, () => pagination.value.rowsPerPage], () => { - updatePagination(currentPage.value, pagination.value.rowsPerPage); -}); +watch( + () => pagination.value.rowsPerPage, + () => { + currentPage.value = 1; + updatePagination(currentPage.value, pagination.value.rowsPerPage); + } +);