From 2acd5cc58a7ce04de40c8bf18153e872f7245eb0 Mon Sep 17 00:00:00 2001 From: tangly Date: Fri, 21 Oct 2022 14:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnext=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/next/LayoutBase.js | 5 +++-- themes/next/components/SideAreaRight.js | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/themes/next/LayoutBase.js b/themes/next/LayoutBase.js index 76f56dc8..f3b9dc44 100644 --- a/themes/next/LayoutBase.js +++ b/themes/next/LayoutBase.js @@ -51,7 +51,7 @@ const LayoutBase = (props) => { if (fb.length === 0) { floatButtonGroup?.current?.classList.replace('bottom-24', 'bottom-12') } else { - floatButtonGroup?.current?.classList.remove('bottom-12', 'bottom-24') + floatButtonGroup?.current?.classList.replace('bottom-12', 'bottom-24') } document.addEventListener('scroll', scrollListener) @@ -73,7 +73,8 @@ const LayoutBase = (props) => {
{onLoading ? : <> {children} }
- + {/* 右侧栏样式 */} + { CONFIG_NEXT.RIGHT_BAR && } {/* 右下角悬浮 */} diff --git a/themes/next/components/SideAreaRight.js b/themes/next/components/SideAreaRight.js index 6a0abd51..d5ccfe15 100644 --- a/themes/next/components/SideAreaRight.js +++ b/themes/next/components/SideAreaRight.js @@ -22,9 +22,6 @@ import BLOG from '@/blog.config' const SideAreaRight = (props) => { const { tags, currentTag, slot, categories, currentCategory } = props const { locale } = useGlobal() - if (!CONFIG_NEXT.RIGHT_BAR) { - return <> - } const router = useRouter() return (