meta移动端适配

This commit is contained in:
tangly1024
2022-12-07 18:59:19 +08:00
parent 900dc5fbd0
commit 47d2dcaa45
5 changed files with 163 additions and 166 deletions

View File

@@ -9,6 +9,8 @@ import { ArticleLock } from './components/ArticleLock'
export const LayoutSlug = props => {
const { post, lock, validPassword } = props
const { locale } = useGlobal()
if (!post) {
return <LayoutBase
{...props}
@@ -20,7 +22,6 @@ export const LayoutSlug = props => {
post.content = Object.keys(post.blockMap.block)
post.toc = getPageTableOfContents(post, post.blockMap)
}
const { locale } = useGlobal()
const slotRight = post?.toc && post?.toc?.length > 3 && (
<div key={locale.COMMON.TABLE_OF_CONTENTS} >