fix: 修复 RiskRules.vue ruleText 函数中 DRATIO 分支缺少 if 条件导致编译错误

This commit is contained in:
mediabot-pt
2026-07-11 23:31:30 +08:00
parent a68aa94fc2
commit b95c42e6e5

View File

@@ -350,6 +350,7 @@ const ruleText = (r) => {
if (r.type === 'TRAFFIC') { if (r.type === 'TRAFFIC') {
return `无流量且未登录:${val} → <span style="color:#f56c6c;font-weight:500">封号/删除账号</span>${appText}` return `无流量且未登录:${val} → <span style="color:#f56c6c;font-weight:500">封号/删除账号</span>${appText}`
} }
if (r.type === 'DRATIO') {
const levels = (r.levels||[]).map(l => `下载量≥${l.threshold}GB时分享率<${l.ratio}`).join(',') const levels = (r.levels||[]).map(l => `下载量≥${l.threshold}GB时分享率<${l.ratio}`).join(',')
return `分享率:${levels} → <span style="color:#e6a23c;font-weight:500">封号(缓刑7天)</span>${appText}` return `分享率:${levels} → <span style="color:#e6a23c;font-weight:500">封号(缓刑7天)</span>${appText}`
} }