From 97f9e184228ad97a5d716136af116ac07a12b40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jack=E9=AD=8F?= Date: Mon, 18 Aug 2025 19:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=EF=BC=8C=E5=81=9C=E6=AD=A2=E7=94=9F=E6=88=90=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/paths/conversation.ts | 3 ++- src/apis/workFlow/workFlowService.ts | 3 ++- src/views/createapp/components/workFlow.vue | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/apis/paths/conversation.ts b/src/apis/paths/conversation.ts index db3bbd2..315c510 100644 --- a/src/apis/paths/conversation.ts +++ b/src/apis/paths/conversation.ts @@ -20,7 +20,8 @@ const BASE_URL = '/api/conversation'; export const stopGeneration = (taskId: string): Promise< [any, FcResponse | undefined] > => { - return post(`/api/stop?taskId=${taskId}`); + let url = taskId === undefined ? '/api/stop' : `/api/stop?taskId=${taskId}`; + return post(url); }; /** diff --git a/src/apis/workFlow/workFlowService.ts b/src/apis/workFlow/workFlowService.ts index a206fac..986c57e 100644 --- a/src/apis/workFlow/workFlowService.ts +++ b/src/apis/workFlow/workFlowService.ts @@ -13,8 +13,9 @@ import { export const queryAllFlowService = (params: { page: number; pageSize: number; + language?: string | undefined; }): Promise<[any, FcResponse | undefined]> => { - return get('/api/flow/service'); + return get(`/api/flow/service?language=${params.language}`); }; /** diff --git a/src/views/createapp/components/workFlow.vue b/src/views/createapp/components/workFlow.vue index c3e510e..a0beef6 100644 --- a/src/views/createapp/components/workFlow.vue +++ b/src/views/createapp/components/workFlow.vue @@ -31,6 +31,7 @@ import { getSrcIcon, DefaultViewPortZoom } from './types'; import $bus from 'src/bus/index'; import CustomLoading from '../../customLoading/index.vue'; import EditFlowName from './workFlowConfig/editFlowName.vue'; +import { useLangStore } from 'src/store'; const { t } = useI18n(); const copilotAside = ref(); @@ -70,6 +71,8 @@ const apiLoading = ref(false); const themeStore = useChangeThemeStore(); const connectHandleNodeId = ref(''); const updateFlowsDebugStatus = ref(false); +const langStore = useLangStore(); + const hanleAsideVisible = () => { if (!copilotAside.value) return; if (isCopilotAsideVisible.value) { @@ -268,6 +271,7 @@ onMounted(() => { .queryAllFlowService({ page: 1, pageSize: 10, + language: langStore.language, }) .then((res) => { apiServiceList.value = res[1]?.result.services; -- Gitee