Browse Source

初始0/0

zhouna 4 năm trước cách đây
mục cha
commit
427b0177b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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+"%";
     }