Skip to content

Commit

Permalink
[Improvement] AddressEdit: trim empty value (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed May 24, 2018
1 parent 2fe25a2 commit aa89f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/address-edit/index.vue
Expand Up @@ -251,7 +251,7 @@ export default create({
},
getErrorMessageByKey(key) {
const value = this.data[key];
const value = this.data[key].trim();
const { $t } = this;
switch (key) {
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-edit/index.vue
Expand Up @@ -81,7 +81,7 @@ export default create({
},
getErrorMessageByKey(key) {
const value = this.data[key];
const value = this.data[key].trim();
switch (key) {
case 'name':
return value ? value.length <= 15 ? '' : this.$t('nameOverlimit') : this.$t('nameEmpty');
Expand Down

0 comments on commit aa89f1a

Please sign in to comment.