diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index 18660cca..8804613a 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -236,8 +236,16 @@ export default { this.otherImgSrc=this.form.otherPhoto?.split(',') this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item})) } - this.vehicleLicensePhotoList=[{url:this.form?.vehicleLicensePhoto}] - this.vehicleAnglePhotoList=[{url:this.form?.vehicleAnglePhoto}] + if(this.form.vehicleLicensePhoto){ + this.vehicleLicensePhotoList=[{url:this.form?.vehicleLicensePhoto}] + } + if(this.form.vehicleAnglePhoto){ + this.vehicleAnglePhotoList=[{url:this.form.vehicleAnglePhoto}] + } + if(this.otherImgSrc?.length>0){ + this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item})) + } + // console.log(" this.vehicleLicensePhotoList", this.vehicleLicensePhotoList) /*this.vehicleLicensePhotoList=carSourceFormInfo.vehicleLicensePhotoList this.vehicleAnglePhotoList=carSourceFormInfo.vehicleAnglePhotoList this.otherImgSrcList=carSourceFormInfo.otherImgSrcList @@ -267,8 +275,6 @@ export default { this.$router.push({ name: "privacyComponent"}) }, confirmHandle(val){ - // let data=val.length - // this.form.areaCode=val[data - 1]?.code if(val[0].name.includes('市')){ this.areaName=val[0].name this.form.areaCode=val[0].code