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