File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type LogicFlow from '@logicflow/core'
22import { type GraphModel } from '@logicflow/core'
33import { MsgSuccess , MsgError , MsgConfirm } from '@/utils/message'
44import { WorkflowType } from '@/enums/workflow'
5+ import { t } from '@/locales'
56let selected : any | null = null
67
78function translationNodeData ( nodeData : any , distance : any ) {
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ const applicationNodeFormRef = ref<FormInstance>()
169169const 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 )
You can’t perform that action at this time.
0 commit comments