fix(*): 全量 UI 审查与 undefined 展示异常修复
This commit is contained in:
@@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatPercent } from '../../helpers/safeDisplay';
|
||||
import { formatNumber, formatPercent } from '../../helpers/safeDisplay';
|
||||
|
||||
import React from 'react';
|
||||
import { Card } from '@/components/ui';
|
||||
@@ -66,7 +66,7 @@ const OverviewCards = ({ overview, loading = false, t }) => {
|
||||
},
|
||||
{
|
||||
title: t('今日充值'),
|
||||
value: `¥${overview.today_topup?.toFixed(2) || '0.00'}`,
|
||||
value: `¥${formatNumber(overview.today_topup, 2, '0.00')}`,
|
||||
change: overview.today_topup_change,
|
||||
icon: <DollarSign className='w-5 h-5' />,
|
||||
color: 'yellow',
|
||||
@@ -93,7 +93,7 @@ const OverviewCards = ({ overview, loading = false, t }) => {
|
||||
},
|
||||
{
|
||||
title: t('付费率'),
|
||||
value: `${overview.pay_rate?.toFixed(1) || '0.0'}%`,
|
||||
value: formatPercent(overview.pay_rate, 1, '0.0%'),
|
||||
change: null,
|
||||
icon: <Percent className='w-5 h-5' />,
|
||||
color: 'pink',
|
||||
|
||||
Reference in New Issue
Block a user