From dc5c4e44c8b940be34ad1653ea17426a0406a5b4 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Fri, 18 Feb 2022 15:24:08 +0800 Subject: [PATCH] fix bug --- .../components/driver/add-driver/add-driver.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts b/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts index 35047ab2..123da432 100644 --- a/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts +++ b/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts @@ -567,12 +567,12 @@ export class CarSettleAddDriverComponent implements OnInit { } submitForm() { const items: any = this.sf.value; - items.certificatePhotoFrontWatermark = this.sf.value?.certificatePhotoFrontWatermark.data.fullFilePath; - items.certificatePhotoBackWatermark = this.sf.value?.certificatePhotoBackWatermark.data.fullFilePath; + items.certificatePhotoFrontWatermark = this.sf.value?.certificatePhotoFrontWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoFrontWatermark; + items.certificatePhotoBackWatermark = this.sf.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoBackWatermark; const items2: any = this.sf1.value; - items2.certificatePhotoWatermark = this.sf1.value?.certificatePhotoWatermark.data.fullFilePath; + items2.certificatePhotoWatermark = this.sf1.value?.certificatePhotoWatermark?.data?.fullFilePath || this.sf1.value?.certificatePhotoWatermark; const items3: any = this.sf2.value; - items3.certificatePhotoWatermark = this.sf2.value?.certificatePhotoWatermark.data.fullFilePath; + items3.certificatePhotoWatermark = this.sf2.value?.certificatePhotoWatermark?.data?.fullFilePath || this.sf2.value?.certificatePhotoWatermark; const params: any = { source: 2, mobile: this.sf.value.mobile,