fix(*): 全量 UI 审查与 undefined 展示异常修复

This commit is contained in:
zhanjunhao
2026-11-20 10:18:17 +08:00
parent 04cc45bbb7
commit 605cff1d58
65 changed files with 507 additions and 274 deletions
+3 -3
View File
@@ -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]),
},
],
},