fix(ledger): 修复币种符号映射逻辑,并扩充引擎下发流水明细支持 UI 下钻
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user