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;