修复伪静态分页bug

This commit is contained in:
tangly1024.com
2024-06-12 16:22:38 +08:00
parent 557bbf18b8
commit 41acdc09ec
9 changed files with 66 additions and 47 deletions

View File

@@ -16,6 +16,7 @@ const PaginationNumber = ({ page, totalPage }) => {
.split('?')[0]
.replace(/\/page\/[1-9]\d*/, '')
.replace(/\/$/, '')
.replace('.html', '')
const pages = generatePages(pagePrefix, page, currentPage, totalPage)
return (