Skip to content

Commit ecddbae

Browse files
committed
fix: 1051456
--bug=1051456 --user=王孝刚 【应用编排】当前应用关闭文件上传开关后,引用的应用编排节点,选择文档变量没有清空 https://www.tapd.cn/57709429/s/1646694
1 parent 255b4fd commit ecddbae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ui/src/workflow/common/shortcut.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type LogicFlow from '@logicflow/core'
22
import { type GraphModel } from '@logicflow/core'
33
import { MsgSuccess, MsgError, MsgConfirm } from '@/utils/message'
44
import { WorkflowType } from '@/enums/workflow'
5+
import { t } from '@/locales'
56
let selected: any | null = null
67

78
function translationNodeData(nodeData: any, distance: any) {

ui/src/workflow/nodes/application-node/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ const applicationNodeFormRef = ref<FormInstance>()
169169
const form_data = computed({
170170
get: () => {
171171
if (props.nodeModel.properties.node_data) {
172+
console.log(props.nodeModel.properties.node_data)
172173
return props.nodeModel.properties.node_data
173174
} else {
174175
set(props.nodeModel.properties, 'node_data', form)
@@ -222,7 +223,6 @@ const update_field = () => {
222223
return item
223224
}
224225
})
225-
console.log(merge_api_input_field_list)
226226
set(
227227
props.nodeModel.properties.node_data,
228228
'api_input_field_list',
@@ -248,9 +248,9 @@ const update_field = () => {
248248
'user_input_field_list',
249249
merge_user_input_field_list
250250
)
251+
const fileEnable = nodeData.file_upload_enable
251252
const fileUploadSetting = nodeData.file_upload_setting
252-
// 如果是true,说明有文件上传
253-
if (fileUploadSetting) {
253+
if (fileEnable) {
254254
handleFileUpload('document', fileUploadSetting.document)
255255
handleFileUpload('image', fileUploadSetting.image)
256256
handleFileUpload('audio', fileUploadSetting.audio)

0 commit comments

Comments
 (0)