From 64551bf52885526108f6f5fa2f94b7044720784e Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 10 Dec 2022 15:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/next/components/PaginationNumber.js | 2 +- themes/next/components/StickyBar.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/next/components/PaginationNumber.js b/themes/next/components/PaginationNumber.js index 764e3eb4..55311e56 100644 --- a/themes/next/components/PaginationNumber.js +++ b/themes/next/components/PaginationNumber.js @@ -16,7 +16,7 @@ const PaginationNumber = ({ page, totalPage }) => { const pages = generatePages(pagePrefix, page, currentPage, totalPage) return ( -
+
{/* 上一页 */} { - if (!children) return <> + // 滚动页面时导航条样式调整 const scrollTrigger = useCallback(throttle(() => { if (CONFIG_NEXT.NAV_TYPE === 'normal') { return @@ -37,6 +37,8 @@ const StickyBar = ({ children }) => { } }, []) + if (!children) return <> + return (