From 964fb5f67d2961cb45e9d165e7a8bc240574cfc1 Mon Sep 17 00:00:00 2001 From: Hu Gang <18768366022@163.com> Date: Fri, 6 Jun 2025 14:11:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E5=BA=94=E7=94=A8=E4=B8=AD?= =?UTF-8?q?=E5=BF=83`=E6=9C=AA=E5=8F=91=E5=B8=83`=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/app/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/app/style.scss b/src/views/app/style.scss index 6a86190..9026e8b 100644 --- a/src/views/app/style.scss +++ b/src/views/app/style.scss @@ -65,7 +65,7 @@ padding-top: 4px; width: 1340px; .appCenterCardBox { - margin-top: 16px; + padding-top: 16px; width: fit-content; display: flex; flex-wrap: wrap; -- Gitee From 722a263117ad44cd76633629eae2e6a1d3b41710 Mon Sep 17 00:00:00 2001 From: Hu Gang <18768366022@163.com> Date: Fri, 6 Jun 2025 14:12:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20mcp=E8=AF=A6=E6=83=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8C=BA=E5=88=86=E7=BC=96=E8=BE=91=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=EF=BC=8C=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E6=94=AF=E6=8C=81markdown=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/paths/mcp.ts | 4 ++-- src/views/api/components/McpDrawer.vue | 5 +++-- src/views/api/components/McpServiceDetail.vue | 8 +++++--- src/views/api/index.vue | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/apis/paths/mcp.ts b/src/apis/paths/mcp.ts index f0a258e..7d72973 100644 --- a/src/apis/paths/mcp.ts +++ b/src/apis/paths/mcp.ts @@ -29,7 +29,7 @@ const getMcpList = (params: { }>(MCP_BASE_URL, params); }; -const getMcpServiceDetail = (id: string) => { +const getMcpServiceDetail = (id: string, edit?: boolean) => { return get<{ serviceId: string; icon: string; @@ -60,7 +60,7 @@ const getMcpServiceDetail = (id: string) => { }; }; }[]; - }>(`${MCP_BASE_URL}/${id}`); + }>(`${MCP_BASE_URL}/${id}`, { edit }); }; const createOrUpdateMcpService = (params: { diff --git a/src/views/api/components/McpDrawer.vue b/src/views/api/components/McpDrawer.vue index 1fd3c56..7cb2bfd 100644 --- a/src/views/api/components/McpDrawer.vue +++ b/src/views/api/components/McpDrawer.vue @@ -151,11 +151,12 @@ async function onConfirm(formEl: FormInstance | undefined) { } async function getMcpServiceDetail(serviceId: string) { - const [, res] = await api.getMcpServiceDetail(serviceId); + const [, res] = await api.getMcpServiceDetail(serviceId, true); if (res) { - const { icon, name, description, data, mcpType } = res.result; + const { icon, name, description, data, mcpType, overview } = res.result; form.icon = icon; form.name = name; + form.overview = overview; form.description = description; form.type = mcpType; form.mcpConfig = data; diff --git a/src/views/api/components/McpServiceDetail.vue b/src/views/api/components/McpServiceDetail.vue index b4bb3f3..3476bc2 100644 --- a/src/views/api/components/McpServiceDetail.vue +++ b/src/views/api/components/McpServiceDetail.vue @@ -9,6 +9,7 @@ import { ElEmpty } from 'element-plus'; import i18n from 'src/i18n'; import { useChangeThemeStore } from '@/store'; import { storeToRefs } from 'pinia'; +import marked from '@/utils/marked'; interface McpDetail { serviceId: string; @@ -115,9 +116,10 @@ watch( name="description" :lazy="true" > -