mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复工作流函数库id未赋值
This commit is contained in:
parent
eedb1be6d8
commit
626a721518
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue