diff --git a/src/components/page/page.vue b/src/components/page/page.vue index 4031a05..27f15bf 100644 --- a/src/components/page/page.vue +++ b/src/components/page/page.vue @@ -156,8 +156,8 @@ watch: { total (val) { let maxPage = Math.ceil(val / this.currentPageSize); - if (maxPage < this.currentPage && maxPage > 0) { - this.currentPage = maxPage; + if (maxPage < this.currentPage ) { + this.currentPage = (maxPage === 0 ? 1 : maxPage); } }, current (val) { -- libgit2 0.21.4