fix(ui): 修复登录和并发请求并统一页面展示

调整登录流程和请求处理,统一各中心的表格交互、主题样式和页面展示。
This commit is contained in:
zhanjunhao
2026-11-19 18:58:46 +08:00
parent 9b6eb1c7c4
commit 7908ed53a3
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>