mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: When adding a new node, the default execution condition is' all ', which often results in errors. Adjust it to default to any (#4443)
This commit is contained in:
parent
d835e24d35
commit
94af9e45bd
|
|
@ -177,6 +177,7 @@ function clickNodes(item: any, data?: any) {
|
|||
})),
|
||||
}
|
||||
}
|
||||
item['properties']['condition'] = 'OR'
|
||||
props.workflowRef?.addNode(item)
|
||||
|
||||
emit('clickNodes', item)
|
||||
|
|
@ -188,6 +189,7 @@ function onmousedown(item: any, data?: any) {
|
|||
if (data.tool_type == 'DATA_SOURCE') {
|
||||
item['properties'].kind = WorkflowKind.DataSource
|
||||
}
|
||||
|
||||
item['properties']['node_data'] = {
|
||||
...data,
|
||||
tool_lib_id: data.id,
|
||||
|
|
@ -197,6 +199,7 @@ function onmousedown(item: any, data?: any) {
|
|||
})),
|
||||
}
|
||||
}
|
||||
item['properties']['condition'] = 'OR'
|
||||
props.workflowRef?.onmousedown(item)
|
||||
emit('onmousedown', item)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -199,8 +199,8 @@ function clickNodes(item: any, data?: any) {
|
|||
})),
|
||||
}
|
||||
}
|
||||
item['properties']['condition'] = 'OR'
|
||||
props.workflowRef?.addNode(item)
|
||||
|
||||
emit('clickNodes', item)
|
||||
}
|
||||
|
||||
|
|
@ -219,6 +219,7 @@ function onmousedown(item: any, data?: any) {
|
|||
})),
|
||||
}
|
||||
}
|
||||
item['properties']['condition'] = 'OR'
|
||||
props.workflowRef?.onmousedown(item)
|
||||
emit('onmousedown', item)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue