refactor(frontend): 优化工具和 API 模块

- 改进 sanitize 工具函数
- 优化 mocks 数据和处理器
- 优化 auth API 模块
This commit is contained in:
fawney19
2025-12-12 20:22:22 +08:00
parent fda0bfa8de
commit 380fd1c4d4
4 changed files with 6 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ const DOMPURIFY_CONFIG = {
'class', 'id'
],
// 允许的URI协议
// eslint-disable-next-line no-useless-escape
ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
}