nav menu refactor + auth check
This commit is contained in:
parent
bdcfe16122
commit
f8c72c622f
2 changed files with 56 additions and 15 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue