Browse Source

fix: 修复翻页

zhangyuhan 2 years ago
parent
commit
8728fdf95f
1 changed files with 3 additions and 1 deletions
  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) {
                 if (res.error_code == 0) {
                     this.working = false
                     this.working = false
                     this.empty = true
                     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) {
                     if (!res.data.list) {
                       res.data.list = []
                       res.data.list = []
                     }
                     }