diff --git a/themes/Medium/components/PaginationSimple.js b/themes/Medium/components/PaginationSimple.js index 5eb30af8..8006421d 100644 --- a/themes/Medium/components/PaginationSimple.js +++ b/themes/Medium/components/PaginationSimple.js @@ -6,14 +6,15 @@ import { useGlobal } from '@/lib/global' /** * 简易翻页插件 * @param page 当前页码 - * @param showNext 是否有下一页 + * @param totalPage 是否有下一页 * @returns {JSX.Element} * @constructor */ -const PaginationSimple = ({ page, showNext }) => { +const PaginationSimple = ({ page, totalPage }) => { const { locale } = useGlobal() const router = useRouter() const currentPage = +page + const showNext = currentPage <= totalPage return (