mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxt): routerBehavior comparison for hash block (#8383)
This commit is contained in:
parent
69a6a86d7c
commit
a0a59e2157
@ -21,7 +21,7 @@ export default <RouterConfig> {
|
||||
}
|
||||
|
||||
// Hash routes on the same page, no page hook is fired so resolve here
|
||||
if (to.path !== from.path) {
|
||||
if (to.path === from.path) {
|
||||
if (from.hash && !to.hash) {
|
||||
return { left: 0, top: 0 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user