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:
shaohuzhang1 2025-12-05 11:59:27 +08:00 committed by GitHub
parent d835e24d35
commit 94af9e45bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

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

View File

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