fix: 修复工作流函数库id未赋值
This commit is contained in:
parent
eedb1be6d8
commit
626a721518
@ -247,7 +247,14 @@ function clickoutsideDebug() {
|
|||||||
function clickNodes(item: any, data?: any) {
|
function clickNodes(item: any, data?: any) {
|
||||||
if (data) {
|
if (data) {
|
||||||
item['properties']['stepName'] = data.name
|
item['properties']['stepName'] = data.name
|
||||||
item['properties']['node_data'] = data
|
item['properties']['node_data'] = {
|
||||||
|
...data,
|
||||||
|
function_lib_id: data.id,
|
||||||
|
input_field_list: data.input_field_list.map((field: any) => ({
|
||||||
|
...field,
|
||||||
|
value: field.source == 'reference' ? [] : ''
|
||||||
|
}))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
workflowRef.value?.addNode(item)
|
workflowRef.value?.addNode(item)
|
||||||
showPopover.value = false
|
showPopover.value = false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user