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