Skip to content

Commit 9beada5

Browse files
JakeLaoyuchenjiahan
authored andcommitted
feat(Area): getArea method filter placeholder (youzan#4718)
1 parent 309a5bc commit 9beada5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/address-edit/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ export default sfc({
127127
},
128128

129129
onAreaConfirm(values) {
130+
if (values.some(value => !value.code)) {
131+
Toast(t('areaEmpty'));
132+
return;
133+
}
130134
this.showAreaPopup = false;
131135
this.assignAreaValues();
132136
this.$emit('change-area', values);

0 commit comments

Comments
 (0)