提交 7ad0a422 编写于 作者: J Jan Vennemann 提交者: ULIVZ

fix: re-enable scroll to anchor behavior (close: #1107)(#1108)

上级 9a4b6150
......@@ -66,8 +66,11 @@ export function createApp (isServer) {
scrollBehavior (to, from, savedPosition) {
if (savedPosition) {
return savedPosition
}
if (to.path !== from.path) {
} else if (to.hash) {
return {
selector: to.hash
}
} else {
return { x: 0, y: 0 }
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册