fix: 修复工作流函数库id未赋值

This commit is contained in:
zhangshaohu 2024-08-26 21:21:55 +08:00 committed by shaohuzhang1
parent eedb1be6d8
commit 626a721518

View File

@ -247,7 +247,14 @@ function clickoutsideDebug() {
function clickNodes(item: any, data?: any) {
if (data) {
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)
showPopover.value = false