// 手机号脱敏函数 export const maskPhone = (phone?: string) => { if (!phone) return ""; return phone.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2"); };