xiatian 5 жил өмнө
parent
commit
7f1d4330fe

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

@@ -927,6 +927,7 @@ export default {
       this.dialogAnswerFile = this.uploadAnswerLoading;
     },
     uploadAnswerFile() {
+      this.answerMessage = "";
       var fileList = document.getElementById("answerFile").files;
       if (fileList.length == 0) {
         this.answerMessage = "请选择文件!";
@@ -941,6 +942,7 @@ export default {
       let config = {
         headers: { "Content-Type": "multipart/form-data" },
       };
+      this.uploadAnswerLoading = true;
       this.$http
         .post(
           QUESTION_API + "/paper/answer/import/" + this.paperId,