feat 保留滚动进度

This commit is contained in:
tangly1024.com
2023-06-30 12:41:20 +08:00
parent 8c76b30213
commit 5be76c306d
3 changed files with 4 additions and 4 deletions

View File

@@ -61,9 +61,6 @@ const Slug = props => {
post.toc = getPageTableOfContents(post, post.blockMap)
}
}
router.events.on('routeChangeComplete', () => {
window.scrollTo({ top: 0, behavior: 'smooth' })
})
}, [post])
const meta = {