Commit d12799f9 authored by chenshouchao's avatar chenshouchao

fix: 解决自定义模板保存问题

parent 5342de1f
...@@ -50,6 +50,9 @@ const FileSelect = observer((props: FileSelectProps) => { ...@@ -50,6 +50,9 @@ const FileSelect = observer((props: FileSelectProps) => {
console.log(selectFileName); console.log(selectFileName);
console.log(selectItem); console.log(selectItem);
// onConfirm(path); // onConfirm(path);
// /ProjectData
// /ProjectData/cromwell/slurm
}; };
// 搜索值改变 // 搜索值改变
......
...@@ -192,6 +192,8 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -192,6 +192,8 @@ const WorkFlowEdit = observer((props: IProps) => {
} else { } else {
return false; return false;
} }
} else {
return true;
} }
} else { } else {
setVersionHelper({ setVersionHelper({
...@@ -287,8 +289,6 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -287,8 +289,6 @@ const WorkFlowEdit = observer((props: IProps) => {
// 表单弹窗确定,新建/编辑自定义模板保存 // 表单弹窗确定,新建/编辑自定义模板保存
const handleOncofirm = () => { const handleOncofirm = () => {
checkTitle(title);
checkVersion(version);
if (checkTitle(title) && checkVersion(version)) { if (checkTitle(title) && checkVersion(version)) {
saveUserSpecRun({ saveUserSpecRun({
title, title,
......
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