medium - mobile - toc

This commit is contained in:
tangly1024.com
2023-02-08 17:05:12 +08:00
parent 74c88c748c
commit d20a97b07c

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))