fix-url-when-switch-theme

This commit is contained in:
tangly1024
2023-06-23 20:51:39 +08:00
parent c5ddc8cee3
commit 5508439ee8
10 changed files with 11 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ export const BlogListPage = props => {
const showPrev = currentPage > 1
const showNext = page < totalPage
const pagePrefix = router.asPath.replace(/\/page\/[1-9]\d*/, '').replace(/\/$/, '')
const pagePrefix = router.asPath.split('?')[0].replace(/\/page\/[1-9]\d*/, '').replace(/\/$/, '')
return (
<div className="w-full md:pr-8 mb-12">