fix: 修复前端编译错误
- 移除 AccountImportForm 中未使用的 message 导入 - 移除 AccountImport 中 handleSuccess 未使用的 accountId 参数
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user