zs il y a 9 mois
Parent
commit
13a4cf54ca
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/components/frame/c-table.vue

+ 2 - 2
src/components/frame/c-table.vue

@@ -211,12 +211,12 @@ export default {
       this.$refs.table.clearSelection();
     },
     changePage(page = this.currentPage) {
-      this.$emit('query', { skip: (page - 1) * this.limit, limit: this.limit, ...this.searchInfo });
+      this.$emit('query', { skip: page, limit: this.limit, ...this.searchInfo });
     },
     sizeChange(limit) {
       this.limit = limit;
       this.currentPage = 1;
-      this.$emit('query', { skip: 0, limit: this.limit, ...this.searchInfo });
+      this.$emit('query', { skip: 1, limit: this.limit, ...this.searchInfo });
     },
     rowClick(row, column, event) {
       this.$emit(`rowClick`, row);