xiaodai2022 2 jaren geleden
bovenliggende
commit
f214f89ff0
2 gewijzigde bestanden met toevoegingen van 7 en 3 verwijderingen
  1. 0 0
      dist/static/js/0.js
  2. 7 3
      src/mixins/elPaginationHandle.js

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


+ 7 - 3
src/mixins/elPaginationHandle.js

@@ -2,13 +2,17 @@ export default {
   methods: {
     async handlePageChange(val) {
       this.parmValue.page = val
-      this.pageInfo.curr = val
+      if (this.pageInfo) {
+        this.pageInfo.curr = val
+      }
       await this.searchList()
     },
     async handleSizeChange(val) {
       this.parmValue.page = 1
-      this.pageInfo.curr = 1
-      this.pageInfo.size = val
+      if (this.pageInfo) {
+        this.pageInfo.curr = 1
+        this.pageInfo.size = val
+      }
       this.parmValue.size = val
       await this.searchList()
     }

Some files were not shown because too many files changed in this diff