[Improvement] AddressEdit: simplify (#1274)

This commit is contained in:
neverland
2018-06-12 20:43:16 +08:00
committed by GitHub
parent c4c93ebbf7
commit 90bbfd2b12
10 changed files with 78 additions and 128 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ export default create({
const value = this.data[key].trim();
switch (key) {
case 'name':
return value ? value.length <= 15 ? '' : this.$t('nameOverlimit') : this.$t('nameEmpty');
return value ? '' : this.$t('nameEmpty');
case 'tel':
return this.telValidator(value) ? '' : this.$t('telInvalid');
}