Skip to content

Commit c489923

Browse files
committed
fix: resolve user.phone black char, edit user phone error
1 parent e40377a commit c489923

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/components/Form/FormFields/PhoneInput.vue‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ export default {
4040
},
4141
computed: {
4242
fullPhone() {
43-
if (!this.rawValue.phone) {
43+
const phone = (this.rawValue.phone || '').trim()
44+
if (!phone) {
4445
return ''
4546
}
46-
return `${this.rawValue.code}${this.rawValue.phone}`
47+
return `${this.rawValue.code}${phone}`
4748
}
4849
},
4950
mounted() {

0 commit comments

Comments
 (0)