fix(ui): 修复现价变量映射错误,修正负收益绿色显示丢失负号的 Bug

This commit is contained in:
2026-04-29 01:40:25 +08:00
parent 1b947d563a
commit 7c2f464f2c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -37,6 +37,7 @@ interface Position {
floatingPnlPercent: string;
cumulativePnlNative: string;
cumulativePnlPercent: string;
latestPrice: string;
transactions: TransactionRecord[];
}
@@ -399,6 +400,7 @@ export async function getPortfolioPositions(): Promise<Position[]> {
floatingPnlPercent: floatingPnlPercent.toString(),
cumulativePnlNative: cumulativePnlNative.toString(),
cumulativePnlPercent: cumulativePnlPercent.toString(),
latestPrice: holding.latestPrice,
transactions: holding.transactions,
});
}