mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-22 09:26:36 +08:00
feat: 全面优化ai-hub前端细节
This commit is contained in:
@@ -71,10 +71,10 @@ function maskEmail(email: string) {
|
||||
return `${name.substring(0, 2)}****@${domain}`;
|
||||
}
|
||||
|
||||
function maskPhone(phone: string) {
|
||||
function maskPhone(phone: number) {
|
||||
if (!phone)
|
||||
return '';
|
||||
return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
|
||||
return phone.toString().replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
|
||||
}
|
||||
|
||||
// 操作处理
|
||||
|
||||
Reference in New Issue
Block a user