Commit 82fbac87 authored by HarlanLuo's avatar HarlanLuo

Pagination: input max value won't be less than 1 (#13727)

parent 16311d1e
......@@ -345,9 +345,9 @@ export default {
computed: {
internalPageCount() {
if (typeof this.total === 'number') {
return Math.ceil(this.total / this.internalPageSize);
return Math.max(1, Math.ceil(this.total / this.internalPageSize));
} else if (typeof this.pageCount === 'number') {
return this.pageCount;
return Math.max(1, this.pageCount);
}
return null;
}
......
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