diff --git a/components/story/create/storyform.vue b/components/story/create/storyform.vue index 8499496..364f6fe 100644 --- a/components/story/create/storyform.vue +++ b/components/story/create/storyform.vue @@ -27,6 +27,7 @@ canDraft?: boolean; endpoint: string; endpointMethod: "put" | "post"; + submitText?: string; }>(); let drag = false; let acData = ref(props.data); @@ -143,6 +144,7 @@ @click=" (e) => { if (!Array.isArray(values.chapters)) { + // noinspection TypeScriptValidateTypes setFieldValue('chapters', []); } const chaps = [...toRaw(values.chapters)]; @@ -171,7 +173,9 @@ - go. + {{ + submitText || "Post" + }}