Skip to content

refactor trap

js
this.dynamicValidateForm.locaNow = { ...data.locaNow };
this.dynamicValidateForm.locaNow.isChange = this.dynamicValidateForm.locaNow.isChange || false;
// this.dynamicValidateForm.locaNow.province = data.locaNow.province;
// this.dynamicValidateForm.locaNow.city = data.locaNow.city;
// this.dynamicValidateForm.locaNow.area = data.locaNow.area;
// this.dynamicValidateForm.locaNow.street = data.locaNow.street;
// this.dynamicValidateForm.locaNow.detail = data.locaNow.detail;
// this.dynamicValidateForm.locaNow.lat = data.locaNow.lat;
// this.dynamicValidateForm.locaNow.lng = data.locaNow.lng;
// this.dynamicValidateForm.locaNow.community = data.locaNow.community;
// this.dynamicValidateForm.locaNow.isChange = data.locaNow.isChange || false;
// this.dynamicValidateForm.locaNow.changedValue = data.locaNow.changedValue;
this.dynamicValidateForm.locaNow = { ...data.locaNow };
this.dynamicValidateForm.locaNow.isChange = this.dynamicValidateForm.locaNow.isChange || false;
// this.dynamicValidateForm.locaNow.province = data.locaNow.province;
// this.dynamicValidateForm.locaNow.city = data.locaNow.city;
// this.dynamicValidateForm.locaNow.area = data.locaNow.area;
// this.dynamicValidateForm.locaNow.street = data.locaNow.street;
// this.dynamicValidateForm.locaNow.detail = data.locaNow.detail;
// this.dynamicValidateForm.locaNow.lat = data.locaNow.lat;
// this.dynamicValidateForm.locaNow.lng = data.locaNow.lng;
// this.dynamicValidateForm.locaNow.community = data.locaNow.community;
// this.dynamicValidateForm.locaNow.isChange = data.locaNow.isChange || false;
// this.dynamicValidateForm.locaNow.changedValue = data.locaNow.changedValue;