fix: 优化UI文案和修复SMTP测试问题

- 修复SMTP平台测试按钮传递必要字段
- 添加"测试通知"类型的友好显示文本和描述
- 简化标题:"启用 Webhook 通知" → "启用通知"
This commit is contained in:
Edric Li
2025-09-09 04:09:51 +08:00
parent 268a262281
commit 5d677b4f17

View File

@@ -377,9 +377,7 @@
> >
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div> <div>
<h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200"> <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200">启用通知</h2>
启用 Webhook 通知
</h2>
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400"> <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
开启后系统将按配置发送通知到指定平台 开启后系统将按配置发送通知到指定平台
</p> </p>
@@ -1679,7 +1677,8 @@ const getNotificationTypeName = (type) => {
accountAnomaly: '账号异常', accountAnomaly: '账号异常',
quotaWarning: '配额警告', quotaWarning: '配额警告',
systemError: '系统错误', systemError: '系统错误',
securityAlert: '安全警报' securityAlert: '安全警报',
test: '测试通知'
} }
return names[type] || type return names[type] || type
} }
@@ -1689,7 +1688,8 @@ const getNotificationTypeDescription = (type) => {
accountAnomaly: '账号状态异常、认证失败等', accountAnomaly: '账号状态异常、认证失败等',
quotaWarning: 'API调用配额不足警告', quotaWarning: 'API调用配额不足警告',
systemError: '系统运行错误和故障', systemError: '系统运行错误和故障',
securityAlert: '安全相关的警报通知' securityAlert: '安全相关的警报通知',
test: '用于测试Webhook连接是否正常'
} }
return descriptions[type] || '' return descriptions[type] || ''
} }