Skip to content

Commit

Permalink
fix: 滚动目录居中
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeD3 committed Feb 19, 2023
1 parent b63edf0 commit 318f231
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const onScroll = () => {
top: 0,
})
: navRef.value.scrollTo({
top: activeEleTop - navMid.value - headerHeight.value,
top: activeEleTop - navMid.value,
})
}
}
Expand Down

0 comments on commit 318f231

Please sign in to comment.