mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 09:48:39 +00:00
feat: update price display use current currency symbol
This commit is contained in:
@@ -1086,9 +1086,12 @@ function renderPriceSimpleCore({
|
|||||||
);
|
);
|
||||||
const finalGroupRatio = effectiveGroupRatio;
|
const finalGroupRatio = effectiveGroupRatio;
|
||||||
|
|
||||||
|
const { symbol, rate } = getCurrencyConfig();
|
||||||
if (modelPrice !== -1) {
|
if (modelPrice !== -1) {
|
||||||
return i18next.t('价格:${{price}} * {{ratioType}}:{{ratio}}', {
|
const displayPrice = (modelPrice * rate).toFixed(6);
|
||||||
price: modelPrice,
|
return i18next.t('价格:{{symbol}}{{price}} * {{ratioType}}:{{ratio}}', {
|
||||||
|
symbol: symbol,
|
||||||
|
price: displayPrice,
|
||||||
ratioType: ratioLabel,
|
ratioType: ratioLabel,
|
||||||
ratio: finalGroupRatio,
|
ratio: finalGroupRatio,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user