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
+4 -2
View File
@@ -36,6 +36,7 @@ import {
import { IconPlus, IconRefresh, IconSearch } from '@/components/ui/icons';
import { useTranslation } from 'react-i18next';
import { API } from '../../helpers';
import { formatNumber } from '../../helpers/safeDisplay';
import { skillTagLabel } from '../../constants/skillCategories';
import {
CapabilityTags,
@@ -740,7 +741,7 @@ const SkillPlatform = () => {
{ value: '', label: t('全部分类') },
...tagFacets.map((facet) => ({
value: facet.tag,
label: `${skillTagLabel(facet.tag, tagLanguage)}(${facet.count})`,
label: `${skillTagLabel(facet.tag, tagLanguage)}(${facet.count ?? 0})`,
})),
]}
/>
@@ -1337,7 +1338,8 @@ const SkillPlatform = () => {
{modelTestResult.ok ? t('测试成功') : t('测试失败')}
</Text>
<Text type='tertiary' size='small'>
{t('耗时')} {modelTestResult.elapsed.toFixed(2)}s
{t('耗时')} {formatNumber(modelTestResult.elapsed, 2, '0.00')}
s
{modelTestResult.usage?.total_tokens
? ` · ${modelTestResult.usage.total_tokens} tokens`
: ''}