From 7bc059ec347225099736b5d8662e6ed1024bc4ec Mon Sep 17 00:00:00 2001 From: WrBug Date: Tue, 23 Dec 2025 01:08:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 AccountImportForm 中未使用的 message 导入 - 移除 AccountImport 中 handleSuccess 未使用的 accountId 参数 --- frontend/src/components/AccountImportForm.tsx | 2 +- frontend/src/pages/AccountImport.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/AccountImportForm.tsx b/frontend/src/components/AccountImportForm.tsx index a762001..0b2eac1 100644 --- a/frontend/src/components/AccountImportForm.tsx +++ b/frontend/src/components/AccountImportForm.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { Form, Input, Button, Radio, Space, Alert, message } from 'antd' +import { Form, Input, Button, Radio, Space, Alert } from 'antd' import { useTranslation } from 'react-i18next' import { useAccountStore } from '../store/accountStore' import { diff --git a/frontend/src/pages/AccountImport.tsx b/frontend/src/pages/AccountImport.tsx index 4c0a93a..ff43514 100644 --- a/frontend/src/pages/AccountImport.tsx +++ b/frontend/src/pages/AccountImport.tsx @@ -12,7 +12,7 @@ const AccountImport: React.FC = () => { const navigate = useNavigate() const [form] = Form.useForm() - const handleSuccess = async (accountId?: number) => { + const handleSuccess = async () => { message.success(t('accountImport.importSuccess')) navigate('/accounts') }