From 0313c0219830e268a81ef8076de03c73a5cd5c10 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Mon, 20 Jan 2025 16:01:26 +0800 Subject: [PATCH] 1 --- .../List/components/DeploymentConfigModal.tsx | 87 +++++++++++-------- 1 file changed, 51 insertions(+), 36 deletions(-) diff --git a/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx b/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx index f333f619..5d49954b 100644 --- a/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx +++ b/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx @@ -379,43 +379,58 @@ const DeploymentConfigModal: React.FC = ({open, onCa
- {fields.map((field, index) => ( -
- ( - - - - - - - )} - /> - ( - - - - - - - )} - /> - + {fields.length === 0 ? ( +
+
+ + + + +
+
暂无环境变量配置
+
+ 点击"添加变量"开始配置 +
- ))} + ) : ( + fields.map((field, index) => ( +
+ ( + + + + + + + )} + /> + ( + + + + + + + )} + /> + +
+ )) + )}