next/pages/new-story.vue
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 205b241e3b
refactor(components): update storyForm
use vue's new `defineModel` functionality to mutate data more cleanly
2024-01-04 15:19:08 -05:00

16 lines
463 B
Vue

<script setup lang="ts">
import storyForm from "~/components/story/create/storyForm.vue";
import { defaultStory } from "@client/types/form/story";
const ds = ref(defaultStory);
definePageMeta({
middleware: ["auth"],
});
useHead({
title: "Post a new Story",
});
</script>
<template>
<a-typography-title> Post a new Story </a-typography-title>
<story-form endpoint-method="post" :can-draft="true" v-model:data="ds" endpoint="/story/new" />
</template>