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 (