Merge branch 'next' into hotfix

This commit is contained in:
Fu Diwei
2025-02-24 15:34:59 +08:00
2 changed files with 139 additions and 2 deletions

View File

@@ -40,11 +40,11 @@ const UploadNodeConfigForm = forwardRef<UploadNodeConfigFormInstance, UploadNode
certificate: z
.string({ message: t("workflow_node.upload.form.certificate.placeholder") })
.min(1, t("workflow_node.upload.form.certificate.placeholder"))
.max(5120, t("common.errmsg.string_max", { max: 5120 })),
.max(20480, t("common.errmsg.string_max", { max: 20480 })),
privateKey: z
.string({ message: t("workflow_node.upload.form.private_key.placeholder") })
.min(1, t("workflow_node.upload.form.private_key.placeholder"))
.max(5120, t("common.errmsg.string_max", { max: 5120 })),
.max(20480, t("common.errmsg.string_max", { max: 20480 })),
});
const formRule = createSchemaFieldRule(formSchema);
const { form: formInst, formProps } = useAntdForm({