fix(*): 全量 UI 审查与 undefined 展示异常修复
This commit is contained in:
@@ -20,6 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import React, { useMemo } from 'react';
|
||||
import { Card } from '@/components/ui';
|
||||
import { VChart } from '@visactor/react-vchart';
|
||||
import { formatCurrency } from '@/helpers/safeDisplay';
|
||||
|
||||
const TrendCharts = ({ title, icon, data, type, t }) => {
|
||||
const spec = useMemo(() => {
|
||||
@@ -142,7 +143,7 @@ const TrendCharts = ({ title, icon, data, type, t }) => {
|
||||
content: [
|
||||
{
|
||||
key: () => topupKey,
|
||||
value: (datum) => `¥${(datum?.[topupKey] || 0).toFixed(2)}`,
|
||||
value: (datum) => formatCurrency(datum?.[topupKey]),
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -174,8 +175,7 @@ const TrendCharts = ({ title, icon, data, type, t }) => {
|
||||
content: [
|
||||
{
|
||||
key: () => consumeKey,
|
||||
value: (datum) =>
|
||||
`¥${(datum?.[consumeKey] || 0).toFixed(2)}`,
|
||||
value: (datum) => formatCurrency(datum?.[consumeKey]),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user