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(() => {