Commit 6d9df08e authored by FuryBean's avatar FuryBean Committed by cinwell.li

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

parent a88577b9
...@@ -293,8 +293,8 @@ export default { ...@@ -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);
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment