YY 2 years ago
parent
commit
a5878b36d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/components/usual/c-table.vue

+ 4 - 0
src/components/usual/c-table.vue

@@ -289,6 +289,10 @@ export default {
     getPageConfig() {
     getPageConfig() {
       return { skip: (this.currentPage - 1) * this.limit, limit: this.limit, currentPage: this.currentPage };
       return { skip: (this.currentPage - 1) * this.limit, limit: this.limit, currentPage: this.currentPage };
     },
     },
+    setPage({ skip, limit }) {
+      let currentPage = skip / limit + 1;
+      this.currentPage = currentPage;
+    },
   },
   },
 };
 };
 </script>
 </script>