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

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,
}, res => {
this.loading = false
if(res.data.list.length){
if(this.standList.length){
this.standList = this.standList.concat(res.data.list)
}else{
this.standList = res.data.list
}
this.loading = false
}else{
this.listFlag = true
}
@@ -139,8 +139,8 @@ export default {
},{
_this: this,
}, res => {
this.standList = res.data.list
this.loading = false
this.standList = res.data.list || []
}, e => {
console.log(e)
})