This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user