diff --git a/src/components/HomePage/homePage.vue b/src/components/HomePage/homePage.vue index ab672f37..e9b7966d 100644 --- a/src/components/HomePage/homePage.vue +++ b/src/components/HomePage/homePage.vue @@ -186,7 +186,12 @@ apiTeach.detailTeacher(this.pageId).then(res =>{ this.teachtext.workExperience = res.result.workExperience; this.teachtext.courses = res.result.courses; - this.tearchUrl = this.fileBaseUrl + res.result.photo; + if(res.result.photo){ + this.tearchUrl = this.fileBaseUrl + res.result.photo; + }else{ + this.tearchUrl =''; + } + //通过用户的sysId(原系统中的kid)去取用户 apiBoeTeahcer.simpleInfo(res.result.sysId).then(sinfo=>{ if(sinfo.status=='200'){