mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-05-22 01:19:17 +08:00
perf[pagination]: Avoid repeating trigger requests
This commit is contained in:
parent
dc35d1ae92
commit
398d59d78a
@ -230,10 +230,16 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
|
if (this.listQuery.limit === val) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.listQuery.limit = val
|
this.listQuery.limit = val
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
handleCurrentChange(val) {
|
handleCurrentChange(val) {
|
||||||
|
if (this.listQuery.page === val) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.listQuery.page = val
|
this.listQuery.page = val
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user