zhangjie před 8 měsíci
rodič
revize
93c560e57f
2 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. binární
      dist.zip
  2. 2 3
      src/modules/inspection/paperCheck/TaskDetail.vue

binární
dist.zip


+ 2 - 3
src/modules/inspection/paperCheck/TaskDetail.vue

@@ -266,13 +266,12 @@ export default {
     },
     async toNextPaper() {
       if (this.curPaperIndex === this.papers.length - 1) {
-        if (this.current === this.totalPage) {
+        if (this.current >= this.totalPage) {
           this.$Message.warning("当前已经是最后一条数据了");
           return;
         } else {
-          this.setPage({ current: this.current + 1 });
+          await this.toPage(this.current + 1);
           this.curPaperIndex = 0;
-          await this.getList();
         }
       } else {
         this.curPaperIndex++;