From cb9d4696f11e2a44412f84840fa4a57f7e3e9920 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 6 Jan 2022 13:26:01 +0800 Subject: [PATCH] bugfixe: page --- components/PaginationNumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/PaginationNumber.js b/components/PaginationNumber.js index 958fa06c..81fabc48 100644 --- a/components/PaginationNumber.js +++ b/components/PaginationNumber.js @@ -66,7 +66,7 @@ function generatePages (page, currentPage, totalPage) { pages.push(getPageElement(1, page)) const dynamicGroupCount = groupCount - 2 let startPage = currentPage - 2 - if (startPage < 0) { + if (startPage <= 0) { startPage = 2 } if (startPage + dynamicGroupCount > totalPage) {