zhangjie 2 năm trước cách đây
mục cha
commit
a03386d7ae
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modules/question/components/QuestionImportDialog.vue

+ 1 - 1
src/modules/question/components/QuestionImportDialog.vue

@@ -203,7 +203,7 @@ export default {
 
       let formData = new FormData();
       Object.entries(this.modalForm).forEach(([key, val]) => {
-        formData.append(key, val);
+        if (val !== null) formData.append(key, val);
       });
       formData.append("file", this.fileData.file);