From 5332c264b0ea23b16ac07175154ad01f04d1773f Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 2 Sep 2025 17:38:55 +0800 Subject: [PATCH] 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) --- ui/src/views/application-workflow/index.vue | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index 047a75e07..4e57c831f 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -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) => {