From 967c79a6186e33064a5ec90df13f7dbb6cf0240c Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 10 Jan 2025 13:41:51 +0800 Subject: [PATCH] 1 --- .../List/components/ApplicationModal.tsx | 87 ++++++------------- 1 file changed, 28 insertions(+), 59 deletions(-) diff --git a/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx b/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx index 221a69c6..a0d36023 100644 --- a/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx +++ b/frontend/src/pages/Deploy/Application/List/components/ApplicationModal.tsx @@ -279,66 +279,35 @@ const ApplicationModal: React.FC = ({ render={({field}) => ( 代码仓库组 - - - - - - - - - { + form.setValue("repositoryGroupId", Number(value)); + }} + value={field.value?.toString()} + > + + + - 未找到代码仓库组 - - - {repositoryGroups.map((group) => ( - { - form.setValue("repositoryGroupId", group.id); - // 关闭 Popover - const popoverTrigger = document.querySelector('[role="combobox"]'); - if (popoverTrigger) { - (popoverTrigger as HTMLElement).click(); - } - }} - className="cursor-pointer" - > - - {group.name} - - ))} - - - - - - + + + + {repositoryGroups.map((group) => ( + + {group.name} + + ))} + + + )} />