From b04ff955ebfec1ba1f95b59e8d4916c105dc841a Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 28 Jan 2022 09:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BF=BB=E9=A1=B5=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Medium/components/PaginationSimple.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 (