From 17e72f1db16c3cfd5bc0fe6f98036d913a55fdd0 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 17 Apr 2024 09:47:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B2=97=E4=BD=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A0=87=E7=AD=BEpositionCode=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/post/index.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 58bf6afb..69bd54be 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -406,7 +406,11 @@ function fnGetList(pageNum?: number) { } tablePagination.total = res.total; tableState.data = res.rows; - if (tablePagination.total <=(queryParams.pageNum - 1) * tablePagination.pageSize &&queryParams.pageNum !== 1) { + if ( + tablePagination.total <= + (queryParams.pageNum - 1) * tablePagination.pageSize && + queryParams.pageNum !== 1 + ) { tableState.loading = false; fnGetList(queryParams.pageNum - 1); } @@ -439,22 +443,22 @@ onMounted(() => {