fix(tsoorder): 修复分页总数获取问题
This commit is contained in:
parent
1348aa4451
commit
a8e536625b
@ -203,7 +203,7 @@ export default {
|
||||
.then((res) => {
|
||||
console.log('接口返回:', res);
|
||||
this.list = res.data.list || [];
|
||||
this.total = res.data.pagination?.total || 0;
|
||||
this.total = res.data.pagination && res.data.pagination.total ? res.data.pagination.total : 0;
|
||||
console.log('列表数据:', this.list);
|
||||
this.listLoading = false;
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user