fix: 修复应用编排自定义函数,数据未清空 (#1487)

This commit is contained in:
shaohuzhang1 2024-10-29 11:36:31 +08:00 committed by GitHub
parent 9da3d7a9ec
commit 2cb8d26609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -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>) => {

View File

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