diff --git a/src/pages/Editor.vue b/src/pages/Editor.vue index ded30ce..c19c003 100644 --- a/src/pages/Editor.vue +++ b/src/pages/Editor.vue @@ -243,8 +243,8 @@ const submitBlog = async () => { const formData = new FormData(); formData.append("title", title); formData.append("content", content); - formData.append("allow_comments", allowComments); - + formData.append("allowComments", allowComments); + formData.append("draft", true); images.forEach((imgData, index) => { formData.append(`images[${index}]`, imgData.file); // 按索引存储图片