mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 03:10:48 +08:00
支持批量创建同名称环境变量,日志和脚本管理PC页支持宽度拖拽
This commit is contained in:
Vendored
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user