Commit 0827e577 authored by 徐一鸣's avatar 徐一鸣

分页组件fixef

parent 479823f4
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
data: () => ({}), data: () => ({}),
computed: { computed: {
totalPages() { totalPages() {
return Math.floor(this.total / this.pageSize) + 1 || 1; return Math.ceil(this.total / this.pageSize) || 1;
}, },
preDisabled() { preDisabled() {
return this.currentPage === 1; return this.currentPage === 1;
......
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