This commit is contained in:
zhx 2026-06-12 00:34:45 +08:00
parent 91498b7557
commit 087e379910

View File

@ -30,6 +30,7 @@ const defaultGenerateForm = {
count: 20, count: 20,
nicknameLanguage: "arabic", nicknameLanguage: "arabic",
}; };
const maxGenerateRobotCount = 1000;
export function GameRobotPage() { export function GameRobotPage() {
const { can } = useAuth(); const { can } = useAuth();
@ -265,11 +266,11 @@ function GenerateDialog({ form, loading, open, setForm, onClose, onSubmit }) {
> >
<AdminFormFieldGrid> <AdminFormFieldGrid>
<TextField <TextField
helperText="最多 200 个" helperText={`最多 ${maxGenerateRobotCount}`}
label="数量" label="数量"
type="number" type="number"
value={form.count} value={form.count}
slotProps={{ htmlInput: { max: 200, min: 1 } }} slotProps={{ htmlInput: { max: maxGenerateRobotCount, min: 1 } }}
onChange={(event) => setForm({ ...form, count: event.target.value })} onChange={(event) => setForm({ ...form, count: event.target.value })}
/> />
<TextField <TextField