Skip to content

Commit e90179c

Browse files
committed
fix: router scrollBehavior to hash(vuejs#298)
1 parent f0b33e1 commit e90179c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function createApp () {
5757
if (saved) {
5858
return saved
5959
} else if (to.hash) {
60-
return false
60+
return { selector: to.hash }
6161
} else {
6262
return { x: 0, y: 0 }
6363
}

0 commit comments

Comments
 (0)