@@ -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 => {