+1
-1
@@ -7,7 +7,7 @@ const routes = Object.values(routeModules).flatMap((mod) => mod.default || [])
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [...routes, { path: '/:pathMatch(.*)*', redirect: { name: 'home' } }],
|
||||
routes: [...routes, { path: '/:pathMatch(.*)*', redirect: { name: 'login' } }],
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
if (savedPosition) return savedPosition
|
||||
if (to.hash) return { el: to.hash }
|
||||
|
||||
Reference in New Issue
Block a user