diff --git a/nginx/vue/src/components/admin/CreatePost.vue b/nginx/vue/src/components/admin/CreatePost.vue index b9170a5..cd7a952 100644 --- a/nginx/vue/src/components/admin/CreatePost.vue +++ b/nginx/vue/src/components/admin/CreatePost.vue @@ -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() {