diff --git a/nginx/vue/src/stores/auth.js b/nginx/vue/src/stores/auth.js index 1af153b..091070c 100644 --- a/nginx/vue/src/stores/auth.js +++ b/nginx/vue/src/stores/auth.js @@ -6,7 +6,7 @@ export const useAuthStore = defineStore("auth", () => { const user = ref({}); checkToken(); - const loggedIn = computed(() => !!user.username); + const loggedIn = computed(() => !!user.value.username); async function logOut() { try {