This commit is contained in:
tangly1024.com
2023-03-23 16:46:54 +08:00
parent f5dd6679ee
commit 6075ce5442

View File

@@ -52,7 +52,6 @@ const Catalog = ({ toc }) => {
}
setActiveSection(currentSectionId)
const index = tocIds.indexOf(currentSectionId) || 0
console.log('滚动目录', tRef.current)
tRef?.current?.scrollTo({ top: 28 * index, behavior: 'smooth' })
}, throttleMs))