From 6dae7ca6c1a652aabaab6b497f61f8539eae8dd6 Mon Sep 17 00:00:00 2001 From: Justineo Date: Thu, 21 Oct 2021 00:43:25 +0800 Subject: [PATCH] feat: improve hash target scroll y --- app/router.scrollBehavior.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/router.scrollBehavior.js b/app/router.scrollBehavior.js index 8abe156..eb19879 100644 --- a/app/router.scrollBehavior.js +++ b/app/router.scrollBehavior.js @@ -11,7 +11,7 @@ export default async function scrollBehavior (to) { return { selector: decodeURIComponent(to.hash), offset: { - y: 32 + y: 120 } } }