From 1448bcd35d524e719f0d95ac035fddb5fa24066e Mon Sep 17 00:00:00 2001 From: hmo Date: Sat, 1 Aug 2026 00:40:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=9B=E5=8C=96=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=AD=97=E5=8F=B7=E6=94=BE=E5=A4=A7(text-xs=E2=86=92text-sm)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/index.html b/static/index.html index 9d9b7ea0..a9361804 100644 --- a/static/index.html +++ b/static/index.html @@ -1979,21 +1979,21 @@ async function loadEvolutionBox() { try { const r = await fetch('/api/evolution/dashboard'); const d = await r.json(); - let h = '
🧬 策略自我进化
'; + let h = '
🧬 策略自我进化
'; if (d.baseline) { - h += '
'; + h += '
'; for (const [v, b] of Object.entries(d.baseline)) { const clr = v === 'v_next4' ? 'text-emerald-400' : 'text-slate-300'; - h += '
'+v+'
胜率'+b.win_rate+'% 收益'+b.total_return+'%
'; + h += '
'+v+'
胜率'+b.win_rate+'% 收益'+b.total_return+'% 回撤'+b.max_dd+'%
'; } h += '
'; } if (d.health && d.health.length > 0) { const hs = d.health[0]; const sc = hs.health_score; const color = sc >= 70 ? 'text-emerald-400' : sc >= 50 ? 'text-amber-400' : 'text-red-400'; - h += '
健康度: '+sc+'分 (实盘'+hs.live_trades+'笔)
'; } + h += '
健康度: '+sc+'分 (实盘'+hs.live_trades+'笔)
'; } if (d.lessons && d.lessons.length > 0) { - h += '
最近教训:
'; - for (const l of d.lessons.slice(0,3)) h += '
'+(l.lesson_type==='win_pattern'?'✅':'❌')+' '+l.lesson_text+'
'; + h += '
📝 最近教训:
'; + for (const l of d.lessons.slice(0,3)) h += '
'+(l.lesson_type==='win_pattern'?'✅':'❌')+' '+l.lesson_text+'
'; } box.innerHTML = h; } catch (e) { box.innerHTML = '
加载失败
'; }