Skip to content

Commit 8598c9d

Browse files
committed
fix columns
1 parent 0b7e175 commit 8598c9d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/lib/AjaxTable.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default {
4545
this.load_data();
4646
},
4747
load_data() {
48+
let limit = this.limit;
4849
this.loading = true;
4950
this.$axios
5051
.get(this.ajax_url, {
@@ -54,9 +55,11 @@ export default {
5455
}
5556
})
5657
.then(res => {
57-
this.total = res.data.count;
58-
this.tableData = res.data.res.map(this.process);
59-
this.loading = false;
58+
if (limit === this.limit) {
59+
this.total = res.data.count;
60+
this.tableData = res.data.res.map(this.process);
61+
this.loading = false;
62+
}
6063
})
6164
.catch(err => {
6265
this.$SegmentMessage.error(this, '[Ajax Table] Request Failed');

0 commit comments

Comments
 (0)