diff --git a/components/BlogPostListEmpty.js b/components/BlogPostListEmpty.js index 37982cd9..79f88837 100644 --- a/components/BlogPostListEmpty.js +++ b/components/BlogPostListEmpty.js @@ -1,5 +1,3 @@ -import { useRouter } from 'next/router' -import { useEffect } from 'react' /** * 空白博客 列表 diff --git a/components/Pagination.js b/components/Pagination.js index 8bc06c1c..6753987e 100644 --- a/components/Pagination.js +++ b/components/Pagination.js @@ -17,13 +17,9 @@ const Pagination = ({ page, showNext }) => { return (
+ href={ { + pathname: (currentPage - 1 === 1 ? `${BLOG.path || '/'}` : `/page/${currentPage - 1}`), query: router.query.s ? { s: router.query.s } : {} + } } passHref > - +