We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7e175 commit 8598c9dCopy full SHA for 8598c9d
src/components/lib/AjaxTable.vue
@@ -45,6 +45,7 @@ export default {
45
this.load_data();
46
},
47
load_data() {
48
+ let limit = this.limit;
49
this.loading = true;
50
this.$axios
51
.get(this.ajax_url, {
@@ -54,9 +55,11 @@ export default {
54
55
}
56
})
57
.then(res => {
- this.total = res.data.count;
58
- this.tableData = res.data.res.map(this.process);
59
- this.loading = false;
+ if (limit === this.limit) {
+ this.total = res.data.count;
60
+ this.tableData = res.data.res.map(this.process);
61
+ this.loading = false;
62
+ }
63
64
.catch(err => {
65
this.$SegmentMessage.error(this, '[Ajax Table] Request Failed');
0 commit comments