Procházet zdrojové kódy

fix(bugs): 修改进度条精度

tangning před 3 roky
rodič
revize
349501cbe8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/views/scenes/downloadModal.vue

+ 1 - 1
src/views/scenes/downloadModal.vue

@@ -118,7 +118,7 @@
         downloadInfo.timer = setInterval(async () => {
           const res = await getDownloadProcessApi({ sceneNum });
           console.log('res', res);
-          const percent = res.percent;
+          const percent = res.percent && Math.round(res.percent);
           downloadInfo.process = percent;
           if (res.status === 1000) {
             downloadInfo.status = '获取中';