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