mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(AddressEdit): choose overseas failure (#4767)
This commit is contained in:
parent
dc964ac068
commit
b2f267b583
@ -139,6 +139,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
onAreaConfirm(values) {
|
||||
values = values.filter(value => !!value);
|
||||
if (values.some(value => !value.code)) {
|
||||
Toast(t('areaEmpty'));
|
||||
return;
|
||||
|
@ -145,7 +145,10 @@ export default createComponent({
|
||||
|
||||
// parse output columns data
|
||||
parseOutputValues(values) {
|
||||
return values.map((value = {}, index) => {
|
||||
return values.map((value, index) => {
|
||||
// save undefined value
|
||||
if (!value) return value;
|
||||
|
||||
value = JSON.parse(JSON.stringify(value));
|
||||
if (!value.code || value.name === this.columnsPlaceholder[index]) {
|
||||
value.code = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user