This commit is contained in:
2025-11-30 13:37:19 +01:00
parent 665f0d1454
commit de2692f704
9 changed files with 50 additions and 122 deletions

View File

@@ -1,6 +1,9 @@
export default defineNuxtRouteMiddleware(async (to, from) => {
const auth = useAuthStore()
console.log(auth)
if (auth.loading) return
// Wenn nicht eingeloggt → auf /login (außer er will schon dahin)