diff --git a/src/stores/auth.ts b/src/stores/auth.ts index c5e618d..1400593 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -46,6 +46,7 @@ export const useAuthStore = defineStore('auth', () => { } catch (e) { error.value = e instanceof Error ? e.message : String(e) loading.value = false + throw e } } diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue index 584ec62..cd862cd 100644 --- a/src/views/LoginView.vue +++ b/src/views/LoginView.vue @@ -23,7 +23,7 @@ /> -
{{ error }}
+{{ error || auth.error }}