This commit is contained in:
2025-12-10 04:49:51 +00:00
parent 384bc1a302
commit e4c6af5690
4 changed files with 4 additions and 7 deletions

View File

@@ -3,7 +3,6 @@ import { ref, onMounted, computed } from "vue";
import { useAuthStore } from "@/stores/auth";
const auth = useAuthStore();
const loggedIn = auth.loggedIn;
const username = ref("");
const password = ref("");
@@ -13,7 +12,7 @@ function handleLogin() {
</script>
<template>
<div v-if="loggedIn">
<div v-if="auth.loggedIn">
<h1>Logged in</h1>
<p>{{ auth.user.ID }}</p>
<p>{{ auth.user.username }}</p>