performance

This commit is contained in:
tangly1024
2023-07-20 22:49:32 +08:00
parent 40d10041e6
commit 0637af15ad

View File

@@ -28,7 +28,6 @@ const Catalog = ({ toc }) => {
const [activeSection, setActiveSection] = useState(null)
const actionSectionScrollSpy = useCallback(throttle(() => {
console.log('目录')
const sections = document.getElementsByClassName('notion-h')
let prevBBox = null
let currentSectionId = activeSection