[bugfix] AddressEdit: string trim (#1487)

This commit is contained in:
neverland 2018-07-14 18:17:17 +08:00 committed by GitHub
parent 85cf31e8bd
commit 4e52fd0a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,7 +244,7 @@ export default create({
}, },
getErrorMessage(key) { getErrorMessage(key) {
const value = this.data[key].trim(); const value = String(this.data[key]).trim();
const { $t } = this; const { $t } = this;
switch (key) { switch (key) {