diff --git a/react-ui/.nvmrc b/react-ui/.nvmrc index 8ddbc0c6..216afccf 100644 --- a/react-ui/.nvmrc +++ b/react-ui/.nvmrc @@ -1 +1 @@ -v18.16.0 +v18.20.7 diff --git a/react-ui/src/components/CodeSelect/index.tsx b/react-ui/src/components/CodeSelect/index.tsx index d2afbb94..c6486d1e 100644 --- a/react-ui/src/components/CodeSelect/index.tsx +++ b/react-ui/src/components/CodeSelect/index.tsx @@ -30,6 +30,7 @@ function CodeSelect({ onChange, ...rest }: CodeSelectProps) { + // 选择代码配置 const selectResource = () => { const { close } = openAntdModal(CodeSelectorModal, { onOk: (res) => { @@ -59,6 +60,11 @@ function CodeSelect({ }); }; + // 删除 + const handleRemove = () => { + onChange?.(undefined); + }; + return (