hook检查

This commit is contained in:
tangly1024
2022-12-13 21:21:32 +08:00
parent 5d8c852c52
commit afe4c679fa

View File

@@ -15,6 +15,7 @@ import { isBrowser } from '@/lib/utils'
export const LayoutSlug = props => {
const { post, lock, validPassword } = props
const drawerRight = useRef(null)
if (!post) {
return <LayoutBase
@@ -30,7 +31,6 @@ export const LayoutSlug = props => {
post.toc = getPageTableOfContents(post, post.blockMap)
}
const drawerRight = useRef(null)
const targetRef = isBrowser() ? document.getElementById('container') : null
const floatSlot = <>