fix: rsi NaN 错误

This commit is contained in:
兰志宏
2025-03-05 09:34:20 +08:00
parent bbf01ac5fe
commit af6ff20f8c
2 changed files with 8 additions and 3 deletions

View File

@@ -772,9 +772,9 @@
<span class="text-gray-600">投资建议</span>
<span class="font-medium text-purple-600">${result.recommendation}</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded">
<div class="flex justify-between items-center p-3 bg-gray-50 rounded">
<span class="text-gray-600">RSI指标</span>
<span class="font-medium">${result.rsi.toFixed(2)}</span>
<span class="font-medium">${result.rsi !== null ? result.rsi.toFixed(2) : '暂无数据'}</span>
</div>
</div>
</div>