xiatian %!s(int64=5) %!d(string=hai) anos
pai
achega
943b0e5199
Modificáronse 1 ficheiros con 1 adicións e 8 borrados
  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;