未验证 提交 c2dfda80 编写于 作者: A Amy0104 提交者: GitHub

[Fix][UI] Set the next node to not required. (#10932)

* [Fix][UI] Set the next node to not required.

* [Fix][UI] Remove the unuse i
上级 b245e7c9
......@@ -104,20 +104,13 @@ export function useSwitch(
autosize: { minRows: 2 }
}
},
(i = 0) => ({
{
type: 'select',
field: 'nextNode',
span: 22,
name: t('project.node.switch_branch_flow'),
options: branchFlowOptions,
validate: {
trigger: ['input', 'blur'],
validator: (unuse: any, value: string) => {
if (model.dependTaskList[i].condition && !value)
return new Error(t('project.node.switch_branch_flow_tips'))
}
}
})
options: branchFlowOptions
}
]
},
{
......@@ -128,12 +121,7 @@ export function useSwitch(
props: {
loading: loading
},
options: branchFlowOptions,
validate: {
trigger: ['input', 'blur'],
required: true,
message: t('project.node.switch_branch_flow_tips')
}
options: branchFlowOptions
}
]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册