测试博客提交修正
This commit is contained in:
parent
ddb90c3d90
commit
23461ae3df
@ -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); // 按索引存储图片
|
||||
|
Loading…
x
Reference in New Issue
Block a user