diff --git a/components/story/create/singleChapter.vue b/components/story/create/singleChapter.vue index d11969b..602ce84 100644 --- a/components/story/create/singleChapter.vue +++ b/components/story/create/singleChapter.vue @@ -16,7 +16,7 @@ name: NamePath; data: FormChapter; }>(); - let acData = toRef(data); + let acData = toRef(() => data); let { data: _bands } = await useApiFetch("/band/all"); let bands = ref(_bands); provide("curName", name + "."); diff --git a/components/story/view/storyInfo.vue b/components/story/view/storyInfo.vue index 4192225..1e05f82 100644 --- a/components/story/view/storyInfo.vue +++ b/components/story/view/storyInfo.vue @@ -2,12 +2,13 @@ import { format } from "date-fns"; import { type SingleChapterResult } from "@client/types/slightlyDifferentStory"; import icon from "~/components/icon.vue"; + const story = inject("story"); console.log("storyyy--info", story); const dark = inject>("dark");