课程页面资源位空信息时的处理

This commit is contained in:
daihh
2022-10-15 21:49:55 +08:00
parent 619dade6c6
commit b701969f7e
2 changed files with 8 additions and 6 deletions

View File

@@ -444,9 +444,11 @@ export default {
couresreso(){
let key = 'course';
apiPlace.detail(key).then(res=>{
console.log(res,'lmj')
let Imageres = JSON.parse(res.result.content);
this.resonimg = Imageres[0]
//console.log(res,'lmj')
let resImgList = JSON.parse(res.result.content);
if(resImgList && resImgList.length>0){
this.resonimg = resImgList[0]
}
// console.log(this.resonimg,'111')
})
},