个人信息修改调整

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: { methods: {
geTel(tel) { geTel(tel) {
const reg = /^(\d{3})\d{4}(\d{4})$/; const reg = /^(\d{3})\d{4}(\d{4})$/;
if (tel) {
return tel.replace(reg, '$1****$2'); return tel.replace(reg, '$1****$2');
} else {
return '';
}
}, },
doShow() { doShow() {
this.visible = true; this.visible = true;