Browse Source

no message

MS-CIAZDCOIXVRW\Administrator 3 năm trước cách đây
mục cha
commit
439b2f1a8f
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      src/components/Home/index.vue

+ 6 - 2
src/components/Home/index.vue

@@ -343,6 +343,10 @@ export default {
           } else {
             this.info = "上传中,请稍等";
           }
+          this.percentage += 1;
+          if (this.percentage >= 99) {
+            this.percentage = 99;
+          }
         }, 1000);
         this.form_name = file.name;
         this.hasDrag = false;
@@ -356,7 +360,7 @@ export default {
             this.percentage = Math.floor(
               (progressEvent.loaded / progressEvent.total) * 100
             );
-            this.percentage = this.percentage == 100 ? 90 : this.percentage;
+            this.percentage = this.percentage == 100 ? 60 : this.percentage;
           },
         };
         let res = await this.$axios.post(
@@ -392,7 +396,7 @@ export default {
         if (res.data.success) {
           this.showPage = 3;
           // 计算出解析的时间
-          this.timer = setInterval(() => {
+          this.timer = setInterval(async () => {
             this.time_s += 1;
             this.parsePercentage += 1;
             if (this.parsePercentage >= 90) {