支持批量创建同名称环境变量,日志和脚本管理PC页支持宽度拖拽

This commit is contained in:
hanhh
2021-08-17 18:34:55 +08:00
parent 30cea84886
commit 3525b1d92a
9 changed files with 114 additions and 89 deletions
+2 -1
View File
@@ -317,7 +317,8 @@ const Env = () => {
const result = [...value];
const index = value.findIndex((x) => x._id === env._id);
if (index === -1) {
result.push(env);
env = Array.isArray(env) ? env : [env];
result.push(...env);
} else {
result.splice(index, 1, {
...env,