Bugfix
This commit is contained in:
parent
a3c209da65
commit
40d234fc2e
|
@ -29,6 +29,7 @@ onMounted(async () => {
|
|||
console.log('Not logged in')
|
||||
router.replace({ name: 'Login' })
|
||||
}
|
||||
|
||||
appStore.selectedCampus = appStore.me?.campus || ''
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -129,5 +129,7 @@ function logout() {
|
|||
removeJwtToken()
|
||||
|
||||
router.push({ name: 'Login' })
|
||||
|
||||
appStore.me = null
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -99,6 +99,8 @@ async function login() {
|
|||
|
||||
await appStore.fetchMe()
|
||||
|
||||
appStore.selectedCampus = appStore.me?.campus || ''
|
||||
|
||||
router.push({ name: 'Home' })
|
||||
} catch (error: any) {
|
||||
errors.push(error.message)
|
||||
|
|
Loading…
Reference in New Issue
Block a user