feat: 调整资产汇总误差计算方式

This commit is contained in:
hzm
2026-03-22 13:56:51 +08:00
parent 73ce520573
commit 303071f639

View File

@@ -118,7 +118,7 @@ export default function GroupSummary({
if (profit) {
hasHolding = true;
totalAsset += profit.amount;
totalAsset += Math.round(profit.amount * 100) / 100;
if (profit.profitToday != null) {
// 先累加原始当日收益,最后统一做一次四舍五入,避免逐笔四舍五入造成的总计误差
totalProfitToday += profit.profitToday;