Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions frontend/src/views/SoftSettings/controller/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ function formatEnv(val: Record<string, string>) {
* @returns {string[]} 恢复后的参数值
*/
function receveArgs(val: string) {
return val.split('\n');
if (val) {
return val.split('\n');
} else {
return []
}
}
/**
* @description 恢复环境变量
Expand Down Expand Up @@ -492,4 +496,4 @@ export async function saveMcpConfigFile(obj: Record<string, string>) {
} else {
message.error(res.msg!);
}
}
}