feat: improve hash target scroll y

This commit is contained in:
Justineo 2021-10-21 00:43:25 +08:00
parent 0836c8576d
commit 6dae7ca6c1
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA

View File

@ -11,7 +11,7 @@ export default async function scrollBehavior (to) {
return { return {
selector: decodeURIComponent(to.hash), selector: decodeURIComponent(to.hash),
offset: { offset: {
y: 32 y: 120
} }
} }
} }