失效商品导致页面不展示

master
chc 2023-02-02 18:04:49 +08:00
parent 4780ae5b18
commit f0628c5995
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ export default {
tracksList(this.params).then((res) => { tracksList(this.params).then((res) => {
this.spinShow = false; this.spinShow = false;
if (res.success && res.result.records.length) { if (res.success && res.result.records.length) {
this.list = res.result.records; this.list = res.result.records.filter(item =>{
return item != null
});
this.total = res.result.total this.total = res.result.total
} else { } else {
this.list = []; this.list = [];