个人信息修改调整

This commit is contained in:
fan 2020-03-31 11:08:22 +08:00
parent 9a57ab9aa3
commit a7a0fa4b41

View File

@ -183,7 +183,11 @@ export default {
methods: {
geTel(tel) {
const reg = /^(\d{3})\d{4}(\d{4})$/;
return tel.replace(reg, '$1****$2');
if (tel) {
return tel.replace(reg, '$1****$2');
} else {
return '';
}
},
doShow() {
this.visible = true;