feat(AddressEdit): add area confirmation verification (#4724)

This commit is contained in:
Jake
2019-10-16 16:36:45 +08:00
committed by neverland
parent 46c646796e
commit a65bd84e0a
7 changed files with 252 additions and 3 deletions

View File

@@ -139,6 +139,10 @@ export default createComponent({
},
onAreaConfirm(values) {
if (values.some(value => !value.code)) {
Toast(t('areaEmpty'));
return;
}
this.showAreaPopup = false;
this.assignAreaValues();
this.$emit('change-area', values);