手机端搜索中心 没数据时,有时页面显示无数据,有事页面一直加载中

This commit is contained in:
zyx.net
2022-11-14 14:16:45 +08:00
parent c98706e0d3
commit 997453e664
+2 -2
View File
@@ -109,13 +109,13 @@ export default {
},{ },{
_this: this, _this: this,
}, res => { }, res => {
this.loading = false
if(res.data.list.length){ if(res.data.list.length){
if(this.standList.length){ if(this.standList.length){
this.standList = this.standList.concat(res.data.list) this.standList = this.standList.concat(res.data.list)
}else{ }else{
this.standList = res.data.list this.standList = res.data.list
} }
this.loading = false
}else{ }else{
this.listFlag = true this.listFlag = true
} }
@@ -139,8 +139,8 @@ export default {
},{ },{
_this: this, _this: this,
}, res => { }, res => {
this.standList = res.data.list
this.loading = false this.loading = false
this.standList = res.data.list || []
}, e => { }, e => {
console.log(e) console.log(e)
}) })