[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
This commit is contained in:
Amy0104 2022-07-14 10:15:25 +08:00 committed by caishunfeng
parent 47782ba555
commit bb6aaf755e

View File

@ -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
}
]
}