This commit is contained in:
Fu Diwei 2025-06-25 11:38:48 +08:00 committed by RHQYZ
parent 12ef573579
commit b6307875dd

View File

@ -25,10 +25,7 @@ const AccessFormCacheFlyConfig = ({ form: formInst, formName, disabled, initialV
const { t } = useTranslation();
const formSchema = z.object({
apiToken: z
.string()
.min(1, t("access.form.cachefly_api_token.placeholder"))
.max(64, t("common.errmsg.string_max", { max: 64 })),
apiToken: z.string().nonempty(t("access.form.cachefly_api_token.placeholder")),
});
const formRule = createSchemaFieldRule(formSchema);