xiatian %!s(int64=5) %!d(string=hai) anos
pai
achega
851f8e84db
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/modules/questions/views/EditPaper.vue

+ 3 - 0
src/modules/questions/views/EditPaper.vue

@@ -939,6 +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)