mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 15:34:16 +08:00
fix(dashboard): 活跃换手列表换手率显示 ×100
overview 返回的 turnover_rate 为小数制, 活跃换手列表需 ×100 转百分数显示。 仅改此一处, 其他页面与 KPI 卡片不动。
This commit is contained in:
@@ -405,7 +405,8 @@ function StockList({ title, rows, mode }: { title: string; rows: MarketSnapshotR
|
||||
</>
|
||||
) : mode === 'active' ? (
|
||||
<>
|
||||
<div className="font-mono text-[11px] text-accent">{fmtPrice(r.turnover_rate, 1)}%</div>
|
||||
{/* overview 的 turnover_rate 为小数制, 需 ×100 转百分数显示 */}
|
||||
<div className="font-mono text-[11px] text-accent">{fmtPrice(r.turnover_rate != null ? r.turnover_rate * 100 : null, 1)}%</div>
|
||||
<div className={`font-mono text-[9px] ${pctClass(r.change_pct)}`}>{fmtStockPct(r.change_pct)}</div>
|
||||
</>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user