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

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

View File

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