Commit f7c62d0a authored by chenshouchao's avatar chenshouchao

feat: 提交任务接口传参取值优化

parent 6369e109
...@@ -118,6 +118,8 @@ const ProjectSubmitWork = () => { ...@@ -118,6 +118,8 @@ const ProjectSubmitWork = () => {
let value: string = ""; let value: string = "";
if (Array.isArray(parameter.value)) { if (Array.isArray(parameter.value)) {
value = parameter.value.join(","); value = parameter.value.join(",");
} else {
value = parameter.value;
} }
if ( if (
parameter.domType.toLowerCase() === "path" || parameter.domType.toLowerCase() === "path" ||
...@@ -137,7 +139,10 @@ const ProjectSubmitWork = () => { ...@@ -137,7 +139,10 @@ const ProjectSubmitWork = () => {
}); });
submitWorkFlowRun({ submitWorkFlowRun({
name, name,
outputPath, outputPath:
outputPath === "ProjectData"
? "/home/cloudam"
: `/home/cloudam${outputPath.slice(11)}`,
projectId: projectId as string, projectId: projectId as string,
specId: templateConfigInfo?.id as string, specId: templateConfigInfo?.id as string,
promotedParameters, promotedParameters,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment