This commit is contained in:
Rijn 2017-08-08 11:23:50 -05:00
parent 06290cb3a9
commit ea060d98f1
2 changed files with 20 additions and 2 deletions

View file

@ -135,6 +135,12 @@
};
},
watch: {
total (val) {
let maxPage = Math.ceil(val / this.currentPageSize);
if (maxPage < this.currentPage && maxPage > 0) {
this.currentPage = maxPage;
}
},
current (val) {
this.currentPage = val;
},