Skip to content

Commit 5332c26

Browse files
authored
fix: When adding interface parameters during application editing, go directly to the conversation after publishing. The URL of the conversation interface does not include interface parameters (#3985)
1 parent 1ec9186 commit 5332c26

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ui/src/views/application-workflow/index.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,27 @@ const publish = () => {
318318
})
319319
.then((ok: any) => {
320320
detail.value.name = ok.data.name
321+
ok.data.work_flow?.nodes
322+
?.filter((v: any) => v.id === 'base-node')
323+
.map((v: any) => {
324+
apiInputParams.value = v.properties.api_input_field_list
325+
? v.properties.api_input_field_list.map((v: any) => {
326+
return {
327+
name: v.variable,
328+
value: v.default_value,
329+
}
330+
})
331+
: v.properties.input_field_list
332+
? v.properties.input_field_list
333+
.filter((v: any) => v.assignment_method === 'api_input')
334+
.map((v: any) => {
335+
return {
336+
name: v.variable,
337+
value: v.default_value,
338+
}
339+
})
340+
: []
341+
})
321342
MsgSuccess(t('views.application.tip.publishSuccess'))
322343
})
323344
.catch((res: any) => {

0 commit comments

Comments
 (0)