fix attempt on buggy player search

This commit is contained in:
2021-11-16 13:19:13 +01:00
parent 7130c13ac4
commit bd8cf4a3c3
4 changed files with 49 additions and 18 deletions

View File

@@ -75,7 +75,14 @@ const routes = [
score: lazyLoadComponent('DamageSite')
}
}
]
],
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
return savedPosition
} else {
return {x: 0, y: 0}
}
}
},
{
path: '/:pathMatch(.*)*',