Skip to content

Commit

Permalink
fix: 修复应用编排自定义函数,数据未清空
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Oct 29, 2024
1 parent 80415c9 commit d76df6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ui/src/components/markdown/MdRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const split_md_img_ = (source: string) => {
return md_img_list[Math.floor(index / 2)]
}
})
console.log(result)
return result
}
const split_quick_question = (result: Array<string>) => {
Expand Down
4 changes: 2 additions & 2 deletions ui/src/workflow/nodes/function-node/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ function deleteField(index: any) {
function refreshFieldList(data: any) {
const list = cloneDeep(props.nodeModel.properties.node_data.input_field_list)
const obj = {
value: data.source === 'reference' ? [] : '',
...data
...data,
value: data.source === 'reference' ? [] : ''
}
if (currentIndex.value !== null) {
list.splice(currentIndex.value, 1, obj)
Expand Down

0 comments on commit d76df6f

Please sign in to comment.