移动端w-full
This commit is contained in:
tangly1024
2021-12-23 13:06:31 +08:00
parent 1fab66a8de
commit 8248a5055d

View File

@@ -67,12 +67,14 @@ const BaseLayout = ({
const targetRef = useRef(null)
const router = useRouter()
return (<div>
return (<>
<CommonHead meta={meta} />
{/* 顶部导航栏 */}
<TopNav tags={tags} post={post} posts={totalPosts} currentSearch={currentSearch} categories={categories} currentCategory={currentCategory} />
{/* {router.asPath === '/as' && */}
<TopNav tags={tags} post={post} posts={totalPosts} currentSearch={currentSearch} categories={categories} currentCategory={currentCategory} />
{/* } */}
{/* 首页头图 */}
{router.asPath === '/' && <Header/>}
@@ -102,7 +104,7 @@ const BaseLayout = ({
<JumpToTopButton targetRef={targetRef} showPercent={false} />
<JumpToBottomButton targetRef={targetRef} showPercent={false}/>
<FloatDarkModeButton/>
</div>
</>
)
}