fix(ledger): 修复币种符号映射逻辑,并扩充引擎下发流水明细支持 UI 下钻

This commit is contained in:
2026-04-28 21:46:28 +08:00
parent e63f309a3a
commit cdea2ce608
3 changed files with 28 additions and 7 deletions
+3 -7
View File
@@ -6,13 +6,9 @@ import { SyncButton } from '@/components/assets/sync-button';
import Big from 'big.js';
function getCurrencySymbol(currency: string): string {
switch (currency) {
case 'USD': return '$';
case 'CNY':
case 'HKD': return 'HK$';
case 'JPY': return '¥';
default: return currency + ' ';
}
if (currency === 'USD') return '$';
if (currency === 'HKD') return 'HK$';
return '¥';
}
function formatNative(value: string, baseCurrency: string): string {