xiatian 5 年之前
父節點
當前提交
943b0e5199
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      src/modules/questions/views/EditPaper.vue

+ 1 - 8
src/modules/questions/views/EditPaper.vue

@@ -939,16 +939,9 @@ export default {
         var file = fileList[i];
         param.append("dataFile", file, file.name);
       }
-      let config = {
-        headers: { "Content-Type": "multipart/form-data" },
-      };
       this.uploadAnswerLoading = true;
       this.$http
-        .post(
-          QUESTION_API + "/paper/answer/import/" + this.paperId,
-          param,
-          config
-        )
+        .post(QUESTION_API + "/paper/answer/import/" + this.paperId, param)
         .then(() => {
           this.dialogAnswerFile = false;
           this.uploadAnswerLoading = false;