mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
fix(AddressEdit): check addressDetail only when showDetail is true (#5803)
This commit is contained in:
@@ -168,7 +168,15 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onSave() {
|
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) {
|
if (this.showPostal) {
|
||||||
items.push('postalCode');
|
items.push('postalCode');
|
||||||
|
Reference in New Issue
Block a user