Skip to content

Commit 265a828

Browse files
committed
hotfix toc-password
1 parent 5a872b4 commit 265a828

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pages/[prefix]/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const Slug = props => {
7575
)
7676
post.toc = getPageTableOfContents(post, post.blockMap)
7777
}
78-
}, [post, lock])
78+
}, [router, lock])
7979

8080
props = { ...props, lock, setLock, validPassword }
8181
// 根据页面路径加载不同Layout文件

themes/gitbook/components/Catalog.js

-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ const Catalog = ({ post }) => {
6565
return <></>
6666
}
6767

68-
console.log('渲染toc', toc)
69-
7068
return (
7169
<>
7270
<div

0 commit comments

Comments
 (0)