mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 09:21:56 +08:00
fix: #819
This commit is contained in:
parent
12ef573579
commit
b6307875dd
@ -25,10 +25,7 @@ const AccessFormCacheFlyConfig = ({ form: formInst, formName, disabled, initialV
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const formSchema = z.object({
|
const formSchema = z.object({
|
||||||
apiToken: z
|
apiToken: z.string().nonempty(t("access.form.cachefly_api_token.placeholder")),
|
||||||
.string()
|
|
||||||
.min(1, t("access.form.cachefly_api_token.placeholder"))
|
|
||||||
.max(64, t("common.errmsg.string_max", { max: 64 })),
|
|
||||||
});
|
});
|
||||||
const formRule = createSchemaFieldRule(formSchema);
|
const formRule = createSchemaFieldRule(formSchema);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user