修复 antd 弃用警告
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { useEffect, useState, useMemo, useCallback } from 'react';
|
||||
import {
|
||||
Table, Button, Select, message, Tag, Space, InputNumber, Tooltip, Popconfirm, theme, Modal, Form,
|
||||
Table, Button, Select, Tag, Space, InputNumber, Tooltip, Popconfirm, theme, Modal, Form,
|
||||
} from 'antd';
|
||||
import { message } from '../utils/antdMessage';
|
||||
import {
|
||||
PlayCircleOutlined, StopOutlined, FilterOutlined, ReloadOutlined, DeleteOutlined,
|
||||
SettingOutlined, SafetyCertificateOutlined,
|
||||
@@ -503,43 +504,49 @@ export default function LoginTasksPage() {
|
||||
label="并发数"
|
||||
tooltip="同时登录的账号数。1 为顺序执行,最多 10。"
|
||||
>
|
||||
<InputNumber
|
||||
min={1}
|
||||
max={10}
|
||||
value={concurrency}
|
||||
onChange={(v) => setConcurrency(v || 1)}
|
||||
style={{ width: 120 }}
|
||||
addonAfter="个"
|
||||
/>
|
||||
<Space.Compact>
|
||||
<InputNumber
|
||||
min={1}
|
||||
max={10}
|
||||
value={concurrency}
|
||||
onChange={(v) => setConcurrency(v || 1)}
|
||||
style={{ width: 120 }}
|
||||
/>
|
||||
<Button disabled>个</Button>
|
||||
</Space.Compact>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="单账号超时"
|
||||
tooltip="单个账号登录的总时长上限,超时则放弃。0 表示不限。"
|
||||
>
|
||||
<InputNumber
|
||||
min={0}
|
||||
max={3600}
|
||||
step={30}
|
||||
value={maxTotalTime}
|
||||
onChange={(v) => setMaxTotalTime(v ?? 0)}
|
||||
style={{ width: 120 }}
|
||||
addonAfter="秒"
|
||||
placeholder="0=不限"
|
||||
/>
|
||||
<Space.Compact>
|
||||
<InputNumber
|
||||
min={0}
|
||||
max={3600}
|
||||
step={30}
|
||||
value={maxTotalTime}
|
||||
onChange={(v) => setMaxTotalTime(v ?? 0)}
|
||||
style={{ width: 120 }}
|
||||
placeholder="0=不限"
|
||||
/>
|
||||
<Button disabled>秒</Button>
|
||||
</Space.Compact>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="登录整体重试次数"
|
||||
tooltip="单个账号最多重试多少轮(每轮换新代理)。0 表示无限重试直到成功或超时。"
|
||||
>
|
||||
<InputNumber
|
||||
min={0}
|
||||
max={50}
|
||||
value={maxLoginRetries}
|
||||
onChange={(v) => setMaxLoginRetries(v ?? 0)}
|
||||
style={{ width: 120 }}
|
||||
addonAfter="次"
|
||||
placeholder="0=无限"
|
||||
/>
|
||||
<Space.Compact>
|
||||
<InputNumber
|
||||
min={0}
|
||||
max={50}
|
||||
value={maxLoginRetries}
|
||||
onChange={(v) => setMaxLoginRetries(v ?? 0)}
|
||||
style={{ width: 120 }}
|
||||
placeholder="0=无限"
|
||||
/>
|
||||
<Button disabled>次</Button>
|
||||
</Space.Compact>
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user