fix: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m4s

This commit is contained in:
sexygoat
2026-05-11 15:51:50 +08:00
parent 766497dc31
commit 1990a3ccba
40 changed files with 832 additions and 127 deletions

View File

@@ -794,7 +794,12 @@
const isMaskedData = (value: string | undefined | null): boolean => {
if (!value) return false
// 检查是否包含脱敏标记:纯星号、已配置标记、或包含连续星号(脱敏数据如Wuha***1218)
return value === '***' || value.includes('[已配置]') || value.includes('[未配置]') || /\*{2,}/.test(value)
return (
value === '***' ||
value.includes('[已配置]') ||
value.includes('[未配置]') ||
/\*{2,}/.test(value)
)
}
// 显示编辑对话框
@@ -906,7 +911,8 @@
description: form.description || undefined
}
// 只有填写了有效的新值才更新敏感字段(不是空值且不是脱敏数据)
if (isValidFieldValue(form.miniapp_app_secret)) data.miniapp_app_secret = form.miniapp_app_secret
if (isValidFieldValue(form.miniapp_app_secret))
data.miniapp_app_secret = form.miniapp_app_secret
if (isValidFieldValue(form.oa_app_secret)) data.oa_app_secret = form.oa_app_secret
if (isValidFieldValue(form.oa_token)) data.oa_token = form.oa_token
if (isValidFieldValue(form.oa_aes_key)) data.oa_aes_key = form.oa_aes_key