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

@@ -4,7 +4,6 @@ import axios from "axios";
import { useAuthStore } from "@/stores/auth";
const auth = useAuthStore();
const loggedIn = auth.loggedIn;
const title = ref("");
const content = ref("");
@@ -24,7 +23,7 @@ async function post() {
</script>
<template>
<div v-if="loggedIn">
<div v-if="auth.loggedIn">
<h1>Create Post</h1>
<input type="text" v-model="title" placeholder="Title" />
<textarea v-model="content" placeholder="Content"></textarea>