bugfix: 分页插件

This commit is contained in:
tangly1024
2022-01-06 13:32:32 +08:00
parent cb9d4696f1
commit e2b56b515b

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