fix: 修复应用编排自定义函数,数据未清空 (#1487)
This commit is contained in:
parent
9da3d7a9ec
commit
2cb8d26609
@ -96,7 +96,6 @@ const split_md_img_ = (source: string) => {
|
|||||||
return md_img_list[Math.floor(index / 2)]
|
return md_img_list[Math.floor(index / 2)]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(result)
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
const split_quick_question = (result: Array<string>) => {
|
const split_quick_question = (result: Array<string>) => {
|
||||||
|
|||||||
@ -197,8 +197,8 @@ function deleteField(index: any) {
|
|||||||
function refreshFieldList(data: any) {
|
function refreshFieldList(data: any) {
|
||||||
const list = cloneDeep(props.nodeModel.properties.node_data.input_field_list)
|
const list = cloneDeep(props.nodeModel.properties.node_data.input_field_list)
|
||||||
const obj = {
|
const obj = {
|
||||||
value: data.source === 'reference' ? [] : '',
|
...data,
|
||||||
...data
|
value: data.source === 'reference' ? [] : ''
|
||||||
}
|
}
|
||||||
if (currentIndex.value !== null) {
|
if (currentIndex.value !== null) {
|
||||||
list.splice(currentIndex.value, 1, obj)
|
list.splice(currentIndex.value, 1, obj)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user