bug修复

This commit is contained in:
tangly1024
2021-10-14 15:18:50 +08:00
parent cf88cb2188
commit 6f5e1b3f39
3 changed files with 6 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ const DrawerRight = ({ post, cRef }) => {
<div
className={(showDrawer ? 'shadow-2xl ' : ' -mr-72 ') + ' w-72 duration-200 h-full fixed right-0 top-16 overflow-y-auto'}>
<div className='z-20'>
<TocBar toc={post.toc}/>
{post && <TocBar toc={post.toc}/>}
</div>
</div>
</div>