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

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