Commit 4f93968d authored by Harlan's avatar Harlan Committed by GitHub

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

Pagination: input max value won't be less than 1 (#13727)
parents 2e9eb0f7 82fbac87
...@@ -345,9 +345,9 @@ export default { ...@@ -345,9 +345,9 @@ export default {
computed: { computed: {
internalPageCount() { internalPageCount() {
if (typeof this.total === 'number') { 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') { } else if (typeof this.pageCount === 'number') {
return this.pageCount; return Math.max(1, this.pageCount);
} }
return null; 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