fix: router
Deploy banu-front / deploy (push) Successful in 1m38s

This commit is contained in:
sajjadtalkhabi
2026-07-12 12:16:12 +03:30
parent b592f520ab
commit 8d2aa1c214
4 changed files with 2 additions and 38 deletions
+1 -1
View File
@@ -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 }