diff --git a/dist/vue-paginate.js b/dist/vue-paginate.js index 9fa55dc..0fcc6a0 100644 --- a/dist/vue-paginate.js +++ b/dist/vue-paginate.js @@ -116,7 +116,7 @@ this.paginateList() }, list: function list () { - if (this.currentPage >= this.lastPage) { + if (this.currentPage >= this.lastPage && this.currentPage!==0) { this.currentPage = this.lastPage - 1 } this.paginateList() diff --git a/src/components/Paginate.js b/src/components/Paginate.js index af736ac..c300787 100644 --- a/src/components/Paginate.js +++ b/src/components/Paginate.js @@ -72,7 +72,7 @@ export default { this.paginateList() }, list () { - if (this.currentPage >= this.lastPage) { + if (this.currentPage >= this.lastPage && this.currentPage!==0) { this.currentPage = this.lastPage - 1 } this.paginateList()