This commit is contained in:
wangshiming
2022-03-08 14:06:58 +08:00
parent 5d07a64d3b
commit cc2dc19a3d

View File

@ -407,7 +407,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
params: { dictKey: 'insure:packaged:goods' },
containsAllLabel: false,
validator: val => {
if (this.sf5.value.insuranceType !=='3' && this.isEmpty(val)) {
if (this.sf5.value?.insuranceType !=='3' && this.isEmpty(val)) {
return [{ keyword: 'required', message: '必填项' }];
} else {
return [];