1
This commit is contained in:
parent
91498b7557
commit
087e379910
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user