fix(ui): 修复登录和并发请求并统一页面展示
调整登录流程和请求处理,统一各中心的表格交互、主题样式和页面展示。
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user