From 9beada5db0a235d22f14d9402e67ddf584b9be73 Mon Sep 17 00:00:00 2001 From: Jake Date: Mon, 14 Oct 2019 19:14:05 +0800 Subject: [PATCH] feat(Area): getArea method filter placeholder (#4718) --- packages/address-edit/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/address-edit/index.js b/packages/address-edit/index.js index 5993775d8..863d6bcfd 100644 --- a/packages/address-edit/index.js +++ b/packages/address-edit/index.js @@ -127,6 +127,10 @@ export default sfc({ }, onAreaConfirm(values) { + if (values.some(value => !value.code)) { + Toast(t('areaEmpty')); + return; + } this.showAreaPopup = false; this.assignAreaValues(); this.$emit('change-area', values);