zhouna 4 rokov pred
rodič
commit
427b0177b9
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/components/MainPage.vue

+ 1 - 1
src/components/MainPage.vue

@@ -211,7 +211,7 @@ export default {
       const moduleName = this.moduleMap[this.activeTab]+'QasList';
       const pnum = this[moduleName].length;
       const snum = (this.num+1)>pnum?pnum:(this.num+1);
-      this.progressNum=snum+"/"+(pnum===0?1:pnum);
+      this.progressNum=(pnum===0?0:snum)+"/"+pnum;
       const precent = (this.num+1)/this[moduleName].length;
       return precent*100+"%";
     }