update index.js
This commit is contained in:
parent
90a163cb58
commit
e00484d08a
@ -98,13 +98,13 @@ const router = createRouter({
|
|||||||
history: createWebHistory(
|
history: createWebHistory(
|
||||||
import.meta.env.VITE_APP_ROUTER_PREFIX),
|
import.meta.env.VITE_APP_ROUTER_PREFIX),
|
||||||
routes: constantRoutes,
|
routes: constantRoutes,
|
||||||
// scrollBehavior(to, from, savedPosition) {
|
scrollBehavior(to, from, savedPosition) {
|
||||||
// if (savedPosition) {
|
if (savedPosition) {
|
||||||
// return savedPosition
|
return savedPosition
|
||||||
// } else {
|
} else {
|
||||||
// return { top: 0 }
|
return { top: 0 }
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
Loading…
x
Reference in New Issue
Block a user