zhengkaixin 1 年之前
父节点
当前提交
e30a189eed
共有 1 个文件被更改,包括 4 次插入2 次删除
  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')						
 					}
 					this.form=newsDetail
-										
-					this.photo = res.data.personInfo.photo;
+					if(res.data.personInfo)	{
+						this.photo = res.data.personInfo.photo;
+					}	
+					
 					
 					uni.hideLoading();
 				}).catch(error => {