Skip to content

Commit

Permalink
修复 mixins/crud.js 的分页问题 github#9
Browse files Browse the repository at this point in the history
close #9
  • Loading branch information
elunez committed Jul 26, 2023
1 parent ac50d79 commit 76dad86
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions eladmin-web/src/mixins/crud.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ export default {
},
// 改变页码
pageChange(e) {
this.page = e - 1
this.page = e
this.init()
},
// 改变每页显示数
sizeChange(e) {
this.page = 0
this.page = 1
this.size = e
this.init()
},
Expand Down
2 changes: 1 addition & 1 deletion eladmin-web/src/views/mnt/deploy/sysRestore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!--分页组件-->
<el-pagination
:total="total"
:current-page="page + 1"
:current-page="page"
style="margin-top: 8px"
layout="total, prev, pager, next, sizes"
@size-change="sizeChange"
Expand Down
2 changes: 1 addition & 1 deletion eladmin-web/src/views/system/timing/log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<!--分页组件-->
<el-pagination
:total="total"
:current-page="page + 1"
:current-page="page"
:page-size="6"
style="margin-top:8px;"
layout="total, prev, pager, next"
Expand Down
2 changes: 1 addition & 1 deletion eladmin-web/src/views/system/user/center.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<!--分页组件-->
<el-pagination
:total="total"
:current-page="page + 1"
:current-page="page"
style="margin-top: 8px;"
layout="total, prev, pager, next, sizes"
@size-change="sizeChange"
Expand Down

0 comments on commit 76dad86

Please sign in to comment.