nav menu refactor + auth check

This commit is contained in:
nquidox 2025-09-13 20:38:35 +03:00
parent bdcfe16122
commit f8c72c622f
2 changed files with 56 additions and 15 deletions

View file

@ -29,7 +29,7 @@ export const useAuthStore = defineStore('auth', () => {
setToken(access_token)
user.value = userData || null
router.push({ name: 'startPage'})
router.push({ name: 'collection'})
} catch (error) {
console.error('Login error:', error)
}