diff --git a/src/address-edit/index.js b/src/address-edit/index.js index 3e9d42179..987354b5e 100644 --- a/src/address-edit/index.js +++ b/src/address-edit/index.js @@ -168,7 +168,15 @@ export default createComponent({ }, onSave() { - const items = ['name', 'tel', 'areaCode', 'addressDetail']; + const items = ['name', 'tel']; + + if (this.showArea) { + items.push('areaCode'); + } + + if (this.showDetail) { + items.push('addressDetail'); + } if (this.showPostal) { items.push('postalCode');