1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

fix(@vant/cli): shoud scroll to top after routing ()

This commit is contained in:
neverland 2021-09-13 20:18:13 +08:00 committed by GitHub
parent 6f93779834
commit 9123cf9784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,7 +112,7 @@ export const router = createRouter({
return { el: to.hash }; return { el: to.hash };
} }
return { x: 0, y: 0 }; return { top: 0 };
}, },
}); });