Преглед изворни кода

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

tangning пре 3 година
родитељ
комит
349501cbe8
1 измењених фајлова са 1 додато и 1 уклоњено
  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 = '获取中';