From f71e83bf7ca7e86a48e861d3e2d8426b760efb57 Mon Sep 17 00:00:00 2001
From: wanghanlin <1533525126@qq.com>
Date: Wed, 9 Sep 2026 09:02:14 +0800
Subject: [PATCH] =?UTF-8?q?refactor(frontend):=20=E6=B6=88=E6=81=AF?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=BB=9F=E4=B8=80=E6=94=B9=E7=94=A8=20TDesig?=
=?UTF-8?q?n=20=E6=A0=87=E5=87=86=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 删除 McpServerManager/ModelConfigManager 手写 fixed 浮层,连接测试结果改用 toast()(MessagePlugin)
- 按钮加载态统一使用 :loading 替代 emoji/纯文字切换(刷新连接、测试连接、获取模型)
- 登录错误、文档详情错误提示改 t-alert;目录树 / AI 执行链加载态改 t-loading
- 导出图片等提示统一走 utils/toast,移除 PipelineFlow 对 MessagePlugin 的直接 import
- 同步清理死代码与孤立样式(components.d.ts 补登记 TAlert)
---
frontend/components.d.ts | 1 +
frontend/src/views/DocDetail.vue | 9 +---
frontend/src/views/DocList.vue | 3 +-
frontend/src/views/LoginPage.vue | 3 +-
frontend/src/views/McpServerManager.vue | 19 +++------
frontend/src/views/ModelConfigManager.vue | 50 +++++++++--------------
frontend/src/views/PipelineFlow.vue | 36 +++++-----------
7 files changed, 42 insertions(+), 79 deletions(-)
diff --git a/frontend/components.d.ts b/frontend/components.d.ts
index 96e0dac..bda4497 100644
--- a/frontend/components.d.ts
+++ b/frontend/components.d.ts
@@ -14,6 +14,7 @@ declare module 'vue' {
PromptSearchHighlight: typeof import('./src/components/PromptSearchHighlight.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
+ TAlert: typeof import('tdesign-vue-next')['Alert']
TButton: typeof import('tdesign-vue-next')['Button']
TCard: typeof import('tdesign-vue-next')['Card']
TCheckbox: typeof import('tdesign-vue-next')['Checkbox']
diff --git a/frontend/src/views/DocDetail.vue b/frontend/src/views/DocDetail.vue
index 67a46e1..d3be730 100644
--- a/frontend/src/views/DocDetail.vue
+++ b/frontend/src/views/DocDetail.vue
@@ -19,9 +19,7 @@
标签
{{ errorMsg }}
+管理 MCP (Model Context Protocol) 服务端配置,支持 SSE 和 Stdio 两种传输方式