This commit is contained in:
2025-12-10 04:47:06 +00:00
parent 809c762e43
commit 384bc1a302
3 changed files with 6 additions and 3 deletions

View File

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