From 9f5528e6d311ec411f8dc69ee750680d4dbad341 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 13 Jan 2023 10:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage/homePage.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'){