diff --git a/app/components/AppShell.vue b/app/components/AppShell.vue index f593412..3c83137 100644 --- a/app/components/AppShell.vue +++ b/app/components/AppShell.vue @@ -10,7 +10,7 @@ withDefaults( ) const route = useRoute() -const { loggedIn, user, refresh, clear, pending } = useAuthSession() +const { loggedIn, user, refresh, clear, initialized } = useAuthSession() const { fetchData } = useClientApi() const { allowRegister, siteName } = useGlobalConfig() @@ -93,7 +93,7 @@ async function logout() { try { await fetchData<{ success: boolean }>('/api/auth/logout', { method: 'POST' }) clear() - await navigateTo('/login') + await navigateTo('/') } finally { logoutLoading.value = false } @@ -158,7 +158,7 @@ async function logout() {
-