Merge pull request #1181 from feitianbubu/fix-balance-unit-sync

fix: balance unit sync
This commit is contained in:
Calcium-Ion 2025-06-09 20:48:58 +08:00 committed by GitHub
commit 5f5333ebda
2 changed files with 3 additions and 3 deletions

View File

@ -256,7 +256,7 @@ const ChannelsTable = () => {
{renderQuota(record.used_quota)}
</Tag>
</Tooltip>
<Tooltip content={t('剩余额度') + record.balance + t(',点击更新')}>
<Tooltip content={t('剩余额度$') + record.balance + t(',点击更新')}>
<Tag
color='white'
type='ghost'
@ -265,7 +265,7 @@ const ChannelsTable = () => {
prefixIcon={<Coins size={14} />}
onClick={() => updateChannelBalance(record)}
>
${renderNumberWithPoint(record.balance)}
{renderQuotaWithAmount(record.balance)}
</Tag>
</Tooltip>
</Space>

View File

@ -854,7 +854,7 @@ export function renderQuotaWithAmount(amount) {
if (displayInCurrency) {
return '$' + amount;
} else {
return renderUnitWithQuota(amount);
return renderNumber(renderUnitWithQuota(amount));
}
}