diff --git a/themes/next/components/MenuList.js b/themes/next/components/MenuList.js index 3afa60e9..2607fd26 100644 --- a/themes/next/components/MenuList.js +++ b/themes/next/components/MenuList.js @@ -35,12 +35,12 @@ export const MenuList = (props) => { <> {/* 大屏模式菜单 */} {/* 移动端菜单 */}
> ) diff --git a/themes/next/components/SideAreaRight.js b/themes/next/components/SideAreaRight.js index 89b5b0ba..6376a4f7 100644 --- a/themes/next/components/SideAreaRight.js +++ b/themes/next/components/SideAreaRight.js @@ -25,6 +25,8 @@ const SideAreaRight = (props) => { const { tagOptions, currentTag, slot, categoryOptions, currentCategory, notice } = props const { locale } = useGlobal() const router = useRouter() + const announcementVisible = notice && Object.keys(notice).length > 0 + return (