소스 검색

fix: 修复翻页

zhangyuhan 2 년 전
부모
커밋
8728fdf95f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/web/staticres/frontRouter/pc/seeHistory/js/index-pc.js

+ 3 - 1
src/web/staticres/frontRouter/pc/seeHistory/js/index-pc.js

@@ -93,7 +93,9 @@ var vm = new Vue({
                 if (res.error_code == 0) {
                     this.working = false
                     this.empty = true
-                    this.seeList.total = res.data.total || 0
+                    if (this.seeList.pageNum === 1) {
+                      this.seeList.total = res.data.total || 0
+                    }
                     if (!res.data.list) {
                       res.data.list = []
                     }