Skip to content

Commit db46b0c

Browse files
committed
fix: [Trigger] When the trigger is executed, the file parameters of the agent fail to pass, and all parameters are empty
1 parent 1e82cbf commit db46b0c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

apps/trigger/handler/impl/task/application_task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def get_application_parameters_setting(application):
168168
for field in ['audio', 'document', 'image', 'other', 'video']:
169169
v = file_upload_setting.get(field)
170170
if v:
171-
application_parameter_setting[field] = {'required': False, 'default_value': [], 'type': 'array'}
171+
application_parameter_setting[field + '_list'] = {'required': False, 'default_value': [],
172+
'type': 'array'}
172173
return application_parameter_setting
173174

174175

ui/src/views/trigger/component/ApplicationParameter.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,31 +223,31 @@ const base_field_list = computed<Array<any>>(() => {
223223
if (base_node.value.properties.node_data.file_upload_enable) {
224224
if (base_node.value.properties.node_data.file_upload_setting.document) {
225225
result.push({
226-
field: 'document',
226+
field: 'document_list',
227227
required: true,
228228
default_value: '[]',
229229
label: { value: t('common.fileUpload.document') },
230230
})
231231
}
232232
if (base_node.value.properties.node_data.file_upload_setting.image) {
233233
result.push({
234-
field: 'image',
234+
field: 'image_list',
235235
required: true,
236236
default_value: '[]',
237237
label: { value: t('common.fileUpload.image') },
238238
})
239239
}
240240
if (base_node.value.properties.node_data.file_upload_setting.audio) {
241241
result.push({
242-
field: 'audio',
242+
field: 'audio_list',
243243
required: true,
244244
default_value: '[]',
245245
label: { value: t('common.fileUpload.audio') },
246246
})
247247
}
248248
if (base_node.value.properties.node_data.file_upload_setting.video) {
249249
result.push({
250-
field: 'video',
250+
field: 'video_list',
251251
required: true,
252252
default_value: '[]',
253253
label: { value: t('common.fileUpload.video') },
@@ -256,7 +256,7 @@ const base_field_list = computed<Array<any>>(() => {
256256
257257
if (base_node.value.properties.node_data.file_upload_setting.other) {
258258
result.push({
259-
field: 'other',
259+
field: 'other_list',
260260
required: true,
261261
default_value: '[]',
262262
label: { value: t('common.fileUpload.other') },

0 commit comments

Comments
 (0)