fix(ui): 买入区显示2位小数(5.96~6.02不再被round成6.0~6.0)

This commit is contained in:
hmo
2026-07-24 12:29:54 +08:00
parent 309f074c51
commit 5667c89943
+1 -1
View File
@@ -1546,7 +1546,7 @@ async function renderWatch() {
const shares = s.shares || 0;
const posPct = s.position_pct || 0;
const buyZone = (el_ && eh_) ? el_.toFixed(1) + '~' + eh_.toFixed(1) : '—';
const buyZone = (el_ && eh_) ? el_.toFixed(2) + '~' + eh_.toFixed(2) : '—';
const sltp = (sl_ || tp_) ? '损' + (sl_||'—') + '/盈' + (tp_||'—') : '—';
const posDisplay = (isRec && s.suggested_position_pct)
? '建议' + s.suggested_position_pct + '%'