个人信息修改调整
This commit is contained in:
parent
9a57ab9aa3
commit
a7a0fa4b41
@ -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})$/;
|
||||||
return tel.replace(reg, '$1****$2');
|
if (tel) {
|
||||||
|
return tel.replace(reg, '$1****$2');
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
doShow() {
|
doShow() {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user