修改环境变量文本

This commit is contained in:
hanhh 2021-06-26 23:37:54 +08:00
parent ecb035d0b4
commit 9f5c8fa70a
2 changed files with 4 additions and 4 deletions

View File

@ -303,7 +303,7 @@ const Env = () => {
const handleCancel = (env?: any[]) => {
setIsModalVisible(false);
handleEnv(env);
env && handleEnv(env);
};
const handleEditNameCancel = (env?: any[]) => {
@ -445,7 +445,7 @@ const Env = () => {
onSearch={onSearch}
/>,
<Button key="2" type="primary" onClick={() => addEnv()}>
Env
</Button>,
]}
header={{

View File

@ -23,7 +23,7 @@ const EnvModal = ({
data: payload,
});
if (code === 200) {
message.success(env ? '更新Env成功' : '添加Env成功');
message.success(env ? '更新变量成功' : '添加变量成功');
} else {
message.error(data);
}
@ -37,7 +37,7 @@ const EnvModal = ({
return (
<Modal
title={env ? '编辑Env' : '新建Env'}
title={env ? '编辑变量' : '新建变量'}
visible={visible}
forceRender
onOk={() => {