front update
All checks were successful
Deploy / deploy (push) Successful in 43s

This commit is contained in:
Никита Круглицкий
2025-10-09 04:42:34 +06:00
parent 7cd4ff72d4
commit 196aa36970
26 changed files with 1049 additions and 324 deletions

View File

@@ -1,8 +1,7 @@
export default defineNuxtRouteMiddleware((to, from) => {
const { username } = useGlobalState()
const { username } = usePreferences()
if (!username.value && to.name !== 'Login') {
console.log('yes')
return navigateTo({ name: 'Login' })
}
@@ -13,7 +12,7 @@ export default defineNuxtRouteMiddleware((to, from) => {
init()
if (to.name === 'Login') {
if (to.path === 'Login') {
return navigateTo('/')
}
})