SyuanYu 1 月之前
父节点
当前提交
e0b556dbef
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      themes/hugo-bootstrap-5/layouts/free-pr-service/_index.html

+ 3 - 0
themes/hugo-bootstrap-5/layouts/free-pr-service/_index.html

@@ -545,6 +545,9 @@
       formData.append("text", newsText.value);
       formData.append("title", headline.value);
       formData.append("contact_id", contactId.value);
+      if (listFile) {
+        formData.append("file", listFile);
+      }
       selectedOptions.forEach(opt => formData.append("options", opt));
 
       try {