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
+3 -2
View File
@@ -23,6 +23,7 @@ import {
Copy as ActionCopy,
Link as ActionLink,
} from '@/components/common/icons/ActionIcons';
import { formatPercent } from '../../helpers/safeDisplay';
import React, { useState, useEffect, useContext, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -327,7 +328,7 @@ const Invite = () => {
title: t('返佣比例'),
dataIndex: 'rebate_rate',
key: 'rebate_rate',
render: (text) => `${((text || 0) * 100).toFixed(0)}%`,
render: (text) => formatPercent((Number(text) || 0) * 100, 0),
},
{
title: t('模型'),
@@ -429,7 +430,7 @@ const Invite = () => {
{item.label === t('\u9080\u8bf7\u4eba\u6570') &&
stats.rebate_rate > 0 && (
<span className='rounded-full bg-amber-50 px-2.5 py-1 text-xs font-semibold text-amber-700 dark:bg-amber-500/[0.10] dark:text-amber-300'>
{(stats.rebate_rate * 100).toFixed(0)}%
{formatPercent((Number(stats.rebate_rate) || 0) * 100, 0)}
</span>
)}
</div>
+1 -1
View File
@@ -77,7 +77,7 @@ html.dark .usage-record-page {
);
--ur-pending-text: var(--ui-color-warning);
/* 在线原型深色:使用记录页签(选中文字与下划线)用品牌色 #f2ad41,其余主色为 #d1963a */
--ur-tab-accent: #f2ad41;
--ur-tab-accent: var(--brand-accent);
}
/* 页签:纯文字,主色 2px 下划线,页签间距 28px */