Pagination: fix currentPage may be 0 in some condition. (#943)

pull/950/head
FuryBean 2016-11-09 17:37:54 +08:00 committed by cinwell.li
parent a88577b99b
commit 6d9df08e56
1 changed files with 2 additions and 2 deletions

View File

@ -293,8 +293,8 @@ export default {
this.internalCurrentPage = 1; this.internalCurrentPage = 1;
this.$emit('current-change', 1); this.$emit('current-change', 1);
} else if (this.internalCurrentPage > newVal) { } else if (this.internalCurrentPage > newVal) {
this.internalCurrentPage = newVal; this.internalCurrentPage = newVal === 0 ? 1 : newVal;
this.$emit('current-change', newVal); this.$emit('current-change', this.internalCurrentPage);
} }
}, },