Merge branch 'theme-Next' into main

This commit is contained in:
tangly1024
2022-01-06 13:33:58 +08:00

View File

@@ -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 <= 1) {
startPage = 2
}
if (startPage + dynamicGroupCount > totalPage) {