fix(login): 中文提示登录批次账号上限
This commit is contained in:
@@ -68,6 +68,7 @@ const CK_STATUS_COLORS: Record<string, string> = {
|
||||
|
||||
type BatchMode = 'login' | 'check';
|
||||
const ACCOUNT_PAGE_SIZE = 50;
|
||||
const LOGIN_BATCH_MAX_ACCOUNTS = 50;
|
||||
|
||||
interface SelectGroupOption {
|
||||
label: string;
|
||||
@@ -363,6 +364,12 @@ export default function LoginTasksPage() {
|
||||
message.warning('请选择账号');
|
||||
return;
|
||||
}
|
||||
if (accountIds.length > LOGIN_BATCH_MAX_ACCOUNTS) {
|
||||
message.warning(
|
||||
`单次最多选择 ${LOGIN_BATCH_MAX_ACCOUNTS} 个账号,当前选择了 ${accountIds.length} 个,请分批操作`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
setStarting(true);
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user