y595705120 3 年 前
コミット
91ee1d9d3a
2 ファイル変更2 行追加2 行削除
  1. 1 1
      src/containers/center/home/index.vue
  2. 1 1
      src/utils/index.js

+ 1 - 1
src/containers/center/home/index.vue

@@ -81,7 +81,7 @@
         this.$router.push(route);
       },
       getPercent(item) {
-        if (item.isPass || item.getXs > item.totalXs) {
+        if (item.getXs > item.totalXs) {
           return 100
         } else {
           return parseInt(item.getXs * 10000 / item.totalXs) / 100

+ 1 - 1
src/utils/index.js

@@ -100,7 +100,7 @@ export function parseTime(time, cFormat) {
 
 
 export function getPercent( item ){
-  if( item.isFinish ) 100;
+  if( item.isFinish ) return  100;
   let percent = parseInt(item.position * 10000 / item.duration) / 100;
   if( percent >= 100) return 99.99;
   return parseInt(item.position * 10000 / item.duration) / 100