Ver código fonte

离线上传按钮禁止重复点击

Michael Wang 4 anos atrás
pai
commit
5c08ec7cf9
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      src/features/OfflineExam/OfflineExamUpload.vue

+ 3 - 2
src/features/OfflineExam/OfflineExamUpload.vue

@@ -465,7 +465,7 @@ export default {
       // }
       // params.append("fileMd5Array", summaries);
 
-      this.$Message.info({
+      const upMsg = this.$Message.info({
         content: "上传中...",
         duration: 30,
         closable: true,
@@ -490,7 +490,8 @@ export default {
         throw error;
       } finally {
         this.uploading = false;
-        this.$Message.destroy();
+        // this.$Message.destroy();
+        upMsg();
       }
       this.$Message.success({
         content: "上传成功",