fix(ui): 修复登录与并发请求并统一表格、主题和页面展示

验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
zhanjunhao
2026-11-19 18:58:46 +08:00
parent 9f5e0cddfb
commit e70e0d2224
128 changed files with 4672 additions and 5391 deletions
@@ -21,6 +21,7 @@ import React, { useMemo } from 'react';
import { Card } from '@/components/ui';
import { VChart } from '@visactor/react-vchart';
import { renderQuota } from '../../helpers';
import { formatPercent } from '../../helpers/safeDisplay';
const ModelDistribution = ({ data, title, icon, t }) => {
const pieSpec = useMemo(() => {
@@ -119,12 +120,12 @@ const ModelDistribution = ({ data, title, icon, t }) => {
<span className='text-xs text-gray-500 w-4'>{index + 1}</span>
<span
className='text-sm flex-1 truncate'
title={item.model_name}
title={item.model_name || t('未知')}
>
{item.model_name}
{item.model_name || t('未知')}
</span>
<span className='text-xs text-gray-500'>
{item.percent?.toFixed(1)}%
{formatPercent(item.percent, 1)}
</span>
</div>
))}