From 6d25f9c205e039c671f315d3196889980ce5d81d Mon Sep 17 00:00:00 2001 From: yoan <536464346@qq.com> Date: Sun, 22 Dec 2024 18:37:03 +0800 Subject: [PATCH] fix build error --- ui/src/components/workflow/StartForm.tsx | 2 +- ui/src/declarations.d.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ui/src/declarations.d.ts diff --git a/ui/src/components/workflow/StartForm.tsx b/ui/src/components/workflow/StartForm.tsx index 76532a1d..c63b1b00 100644 --- a/ui/src/components/workflow/StartForm.tsx +++ b/ui/src/components/workflow/StartForm.tsx @@ -98,7 +98,7 @@ const StartForm = ({ data }: StartFormProps) => { { + onChange={(e: React.ChangeEvent) => { setMethod(e.target.value); }} className="flex space-x-3" diff --git a/ui/src/declarations.d.ts b/ui/src/declarations.d.ts new file mode 100644 index 00000000..eb3a1b90 --- /dev/null +++ b/ui/src/declarations.d.ts @@ -0,0 +1,4 @@ +declare module "antd/locale/zh_CN" { + import zhCN from "antd/locale/zh_CN"; + export default zhCN; +}