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)

v3.2
shaohuzhang1 2025-09-02 17:38:55 +08:00 committed by GitHub
parent 1ec918632f
commit 5332c264b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 0 deletions

View File

@ -318,6 +318,27 @@ const publish = () => {
})
.then((ok: any) => {
detail.value.name = ok.data.name
ok.data.work_flow?.nodes
?.filter((v: any) => v.id === 'base-node')
.map((v: any) => {
apiInputParams.value = v.properties.api_input_field_list
? v.properties.api_input_field_list.map((v: any) => {
return {
name: v.variable,
value: v.default_value,
}
})
: v.properties.input_field_list
? v.properties.input_field_list
.filter((v: any) => v.assignment_method === 'api_input')
.map((v: any) => {
return {
name: v.variable,
value: v.default_value,
}
})
: []
})
MsgSuccess(t('views.application.tip.publishSuccess'))
})
.catch((res: any) => {