From 80976609c7bfb1b17375b1eb32f888b9def82820 Mon Sep 17 00:00:00 2001 From: WrBug Date: Fri, 30 Jan 2026 23:29:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DTypeScript=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除未使用的PositionDto导入 - 修复pnl参数重复声明 --- frontend/src/pages/LeaderList.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/pages/LeaderList.tsx b/frontend/src/pages/LeaderList.tsx index 4c9f9ae..50dd5e6 100644 --- a/frontend/src/pages/LeaderList.tsx +++ b/frontend/src/pages/LeaderList.tsx @@ -4,7 +4,7 @@ import { Card, Table, Button, Space, Tag, Popconfirm, message, List, Empty, Spin import { PlusOutlined, EditOutlined, DeleteOutlined, GlobalOutlined, EyeOutlined, ReloadOutlined, WalletOutlined } from '@ant-design/icons' import { useTranslation } from 'react-i18next' import { apiService } from '../services/api' -import type { Leader, LeaderBalanceResponse, PositionDto } from '../types' +import type { Leader, LeaderBalanceResponse } from '../types' import { useMediaQuery } from 'react-responsive' import { formatUSDC } from '../utils' @@ -215,9 +215,6 @@ const LeaderList: React.FC = () => { const color = numPnl > 0 ? '#52c41a' : '#ff4d4f' return {formatUSDC(pnl)} } - const numPnl = parseFloat(pnl) - const color = numPnl > 0 ? '#52c41a' : '#ff4d4f' - return {formatUSDC(pnl)} } } ]