zhengkaixin 1 year ago
parent
commit
e30a189eed
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pages/packages/shareEmployment/articleDetail.vue

+ 4 - 2
pages/packages/shareEmployment/articleDetail.vue

@@ -72,8 +72,10 @@
 						newsDetail.content=newsDetail.content.replace(reg,'width="100%" height="100%" /> <p')						
 						newsDetail.content=newsDetail.content.replace(reg,'width="100%" height="100%" /> <p')						
 					}
 					}
 					this.form=newsDetail
 					this.form=newsDetail
-										
-					this.photo = res.data.personInfo.photo;
+					if(res.data.personInfo)	{
+						this.photo = res.data.personInfo.photo;
+					}	
+					
 					
 					
 					uni.hideLoading();
 					uni.hideLoading();
 				}).catch(error => {
 				}).catch(error => {