mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 07:26:46 +00:00
@@ -166,7 +166,7 @@ const autoScrollToHash = () => {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// 跳转到指定标题
|
// 跳转到指定标题
|
||||||
const hash = window?.location?.hash
|
const hash = window?.location?.hash
|
||||||
const needToJumpToTitle = hash && hash > 0
|
const needToJumpToTitle = hash && hash.length > 0
|
||||||
if (needToJumpToTitle) {
|
if (needToJumpToTitle) {
|
||||||
console.log('jump to hash', hash)
|
console.log('jump to hash', hash)
|
||||||
const tocNode = document.getElementById(hash.substring(1))
|
const tocNode = document.getElementById(hash.substring(1))
|
||||||
|
|||||||
Reference in New Issue
Block a user