This commit is contained in:
Douglas Barone 2023-07-04 09:43:39 -04:00
parent a3c209da65
commit 40d234fc2e
3 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,7 @@ onMounted(async () => {
console.log('Not logged in')
router.replace({ name: 'Login' })
}
appStore.selectedCampus = appStore.me?.campus || ''
})
</script>

View File

@ -129,5 +129,7 @@ function logout() {
removeJwtToken()
router.push({ name: 'Login' })
appStore.me = null
}
</script>

View File

@ -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)