change UI & fix bugs

This commit is contained in:
2026-09-14 16:12:53 +03:30
parent 6944788b10
commit 2b7746be75
202 changed files with 1040 additions and 418 deletions
+4 -1
View File
@@ -250,7 +250,10 @@ router.beforeEach((to) => {
const authed = isAuthenticated()
if (to.meta.requiresAuth && !authed) {
return { name: 'login', query: { redirect: to.fullPath } }
if (to.name === 'home' || to.path === '/') {
return { name: 'welcome' }
}
return { name: 'welcome', query: { redirect: to.fullPath } }
}
if (to.meta.guest && authed) {