mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(AddressEdit): choose overseas failure when configuring placeholer (#4769)
This commit is contained in:
parent
9ebabb0c0b
commit
190cd7eba4
@ -2,7 +2,6 @@
|
|||||||
// This file is auto gererated by build/build-entry.js
|
// This file is auto gererated by build/build-entry.js
|
||||||
export default {
|
export default {
|
||||||
'changelog.en-US': () => import('../markdown/changelog.en-US.md'),
|
'changelog.en-US': () => import('../markdown/changelog.en-US.md'),
|
||||||
'changelog.generated': () => import('../markdown/changelog.generated.md'),
|
|
||||||
'changelog.zh-CN': () => import('../markdown/changelog.zh-CN.md'),
|
'changelog.zh-CN': () => import('../markdown/changelog.zh-CN.md'),
|
||||||
'contribution.zh-CN': () => import('../markdown/contribution.zh-CN.md'),
|
'contribution.zh-CN': () => import('../markdown/contribution.zh-CN.md'),
|
||||||
'design.zh-CN': () => import('../markdown/design.zh-CN.md'),
|
'design.zh-CN': () => import('../markdown/design.zh-CN.md'),
|
||||||
|
@ -127,6 +127,8 @@ export default sfc({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onAreaConfirm(values) {
|
onAreaConfirm(values) {
|
||||||
|
values = values.filter(value => !!value);
|
||||||
|
|
||||||
if (values.some(value => !value.code)) {
|
if (values.some(value => !value.code)) {
|
||||||
Toast(t('areaEmpty'));
|
Toast(t('areaEmpty'));
|
||||||
return;
|
return;
|
||||||
|
@ -137,7 +137,10 @@ export default sfc({
|
|||||||
|
|
||||||
// parse output columns data
|
// parse output columns data
|
||||||
parseOutputValues(values) {
|
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));
|
value = JSON.parse(JSON.stringify(value));
|
||||||
if (!value.code || value.name === this.columnsPlaceholder[index]) {
|
if (!value.code || value.name === this.columnsPlaceholder[index]) {
|
||||||
value.code = '';
|
value.code = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user