Prechádzať zdrojové kódy

Merge branch 'feature_20260506_增加照片上传进度UI效果' into uat(dev)

zhujindu 2 dní pred
rodič
commit
0af416f206
1 zmenil súbory, kde vykonal 3 pridanie a 5 odobranie
  1. 3 5
      src/components/uploadVNormalTaskPhoto.vue

+ 3 - 5
src/components/uploadVNormalTaskPhoto.vue

@@ -390,7 +390,7 @@ export default {
       if (this.d2timer) {
         clearTimeout(this.d2timer);
       }
-      this.runD2(800, false, () => {
+      this.runD2(500, false, () => {
         if (this.d2timer) {
           clearTimeout(this.d2timer);
         }
@@ -507,10 +507,8 @@ export default {
           const offset = 251.2 * (1 - this.d2count / this.uploadImgTotal);
           document.getElementById('d2ring').style.strokeDashoffset = offset;
           document.getElementById('d2sub').textContent = `${this.d2count}/${this.uploadImgTotal}`;
-          if (
-            this.d2count >= Math.floor(this.uploadImgTotal * (0.4 + Math.random() * 0.5)) &&
-            isFirst
-          ) {
+          // this.d2count >= Math.floor(this.uploadImgTotal * (0.4 + Math.random() * 0.5))
+          if (this.d2count >= Math.floor(this.uploadImgTotal * 0.1) && isFirst) {
             clearTimeout(this.d2timer);
             return;
           }