diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index e414c98a..25d22246 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -218,8 +218,10 @@ export default { this.areaName=res.data?.areaName this.supplierName=res.data?.supplierName this.supplierCode=res.data?.supplierCode - this.otherImgSrc=res.data?.otherPhoto?.split(',') - this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item})) + if(res.data?.otherPhoto){ + this.otherImgSrc=res.data.otherPhoto?.split(',') + this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item})) + } this.vehicleLicensePhotoList=[{url:res.data?.vehicleLicensePhoto}] this.vehicleAnglePhotoList=[{url:res.data?.vehicleAnglePhoto}] console.log("th",this.form)