diff --git a/service-uniapp-client/pages/technician/technicianDetail.vue b/service-uniapp-client/pages/technician/technicianDetail.vue index eb879a7..a4bb267 100644 --- a/service-uniapp-client/pages/technician/technicianDetail.vue +++ b/service-uniapp-client/pages/technician/technicianDetail.vue @@ -240,8 +240,8 @@ this.reviewQueryParams.tenantId = this.technicianDetail.id this.getReview(this.reviewQueryParams.fraction) - if (res.result.msgTechnician.images == '') { //如果用户没有上传个人相册,那么这里给个默认值 - this.technicianImages = ['/static/technician/album.png'] + if (!res.result.msgTechnician.images) { //如果用户没有上传个人相册,那么这里给个默认值 + this.technicianImages = this.technicianDetail.image ? this.technicianDetail.image.split(',') : [] } else { this.technicianImages = res.result.msgTechnician.images.split(',') }