master
tangyi 2022-04-01 14:39:00 +08:00
parent 318d638bfb
commit 25c18b0378
1 changed files with 3 additions and 2 deletions

View File

@ -213,9 +213,10 @@
}) })
}, },
// //
tel(tel) { tel(tel="0000000000") {
const telNum = tel.toString();
const reg = /^(\d{3})\d{4}(\d{4})$/; const reg = /^(\d{3})\d{4}(\d{4})$/;
return tel.replace(reg, '$1****$2') return telNum.replace(reg, '$1****$2')
}, },
// //
checkInfo() { checkInfo() {