mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Revert "Remove unnecessary scrollBehavior function in router."
This reverts commit 275ccbc547
.
This commit is contained in:
parent
483617bd33
commit
3035c3cee4
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ const routes = [
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
routes,
|
routes,
|
||||||
|
scrollBehavior: function (_to, _from, savedPosition) {
|
||||||
|
return savedPosition ? savedPosition : window.scrollTo(0, 0);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
|
Loading…
Reference in a new issue