Ver Fonte

文件上传loading优化

yanghe17378 há 11 meses atrás
pai
commit
0075eeb389
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/components/upload/import-dialogNew.vue

+ 3 - 1
src/components/upload/import-dialogNew.vue

@@ -107,8 +107,10 @@
         await importBatch({
           module: this.module,
           multiPartFiles: this.attaments
+        }).finally(() => {
+          this.uploading = false;
         });
-        this.uploading = false;
+
         this.$message.success('操作成功!');
         this.dialogVisible = false;
         this.$emit('success');