Skip to content
Snippets Groups Projects
Commit 398d59d7 authored by Pan's avatar Pan
Browse files

perf[pagination]: Avoid repeating trigger requests

parent dc35d1ae
No related branches found
No related tags found
No related merge requests found
......@@ -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()
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment