fix(login): 中文提示登录批次账号上限

This commit is contained in:
yml
2026-11-22 09:38:54 +08:00
parent 2d1311820c
commit 492288e84f
4 changed files with 42 additions and 2 deletions
@@ -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 {