y595705120 hace 3 años
padre
commit
91ee1d9d3a
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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