Parcourir la source

Merge branch 'stage' into test

xiaodai2022 il y a 2 ans
Parent
commit
037063f8ae
2 fichiers modifiés avec 8 ajouts et 3 suppressions
  1. 1 0
      dist/static/js/0.js
  2. 7 3
      src/mixins/elPaginationHandle.js

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 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()
     }

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff