forked from AkkomaGang/admin-fe
perf[pagination]: Avoid repeating trigger requests
This commit is contained in:
parent
dc35d1ae92
commit
398d59d78a
1 changed files with 6 additions and 0 deletions
|
@ -230,10 +230,16 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
if (this.listQuery.limit === val) {
|
||||
return
|
||||
}
|
||||
this.listQuery.limit = val
|
||||
this.getList()
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
if (this.listQuery.page === val) {
|
||||
return
|
||||
}
|
||||
this.listQuery.page = val
|
||||
this.getList()
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue