hotfix toc-password

This commit is contained in:
tangly1024.com
2024-05-13 16:12:14 +08:00
parent 5a872b4cae
commit 265a828391
2 changed files with 1 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ const Slug = props => {
)
post.toc = getPageTableOfContents(post, post.blockMap)
}
}, [post, lock])
}, [router, lock])
props = { ...props, lock, setLock, validPassword }
// 根据页面路径加载不同Layout文件

View File

@@ -65,8 +65,6 @@ const Catalog = ({ post }) => {
return <></>
}
console.log('渲染toc', toc)
return (
<>
<div