From f13384309a55cf7a1457222ed0ec65dc859e68c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BF=97=E5=86=9B?= <543024265@qq.com> Date: Mon, 28 Jul 2025 19:59:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor(agent):=20=E9=87=8D=E6=9E=84=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E4=BD=93=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -调整了智能体卡片的布局结构,优化了标题和描述的显示方式 - 改进了历史对话的展示样式,增加了滚动指示器 - 统一了标签和图标的样式,提升了视觉一致性 - 优化了搜索框和卡片列表的样式,提高了用户体验 --- .../agent/chat/components/HistoryChat.vue | 11 ---- src/views/agent/chat/components/history.scss | 11 +--- src/views/agent/chat/index.vue | 33 ++++++---- .../work-flow/components/DynamicForm.vue | 25 ++++++-- .../work-flow/components/HistoryChat.vue | 11 ---- .../agent/work-flow/components/history.scss | 15 ++--- src/views/agent/work-flow/index.vue | 60 ++++++++++--------- 7 files changed, 80 insertions(+), 86 deletions(-) diff --git a/src/views/agent/chat/components/HistoryChat.vue b/src/views/agent/chat/components/HistoryChat.vue index e572ac6..1a1590b 100644 --- a/src/views/agent/chat/components/HistoryChat.vue +++ b/src/views/agent/chat/components/HistoryChat.vue @@ -28,18 +28,7 @@ {{cozeInfo.description}} -
- - - - - - - - - - diff --git a/src/views/agent/chat/components/history.scss b/src/views/agent/chat/components/history.scss index e8c5dbc..51b1a8d 100644 --- a/src/views/agent/chat/components/history.scss +++ b/src/views/agent/chat/components/history.scss @@ -37,7 +37,7 @@ .info-section { align-self: stretch; - padding: 15px; + padding: 10px 0 0 10px; display: flex; justify-content: space-between; align-items: flex-start; @@ -110,7 +110,7 @@ } .label { - left: 43px; + left: 22px; top: 10px; position: absolute; color: var(--Text-3, #737478); @@ -142,12 +142,7 @@ } } - .divider { - align-self: stretch; - height: 0px; - outline: 1px var(--Border-2, #E6E6E8) solid; - outline-offset: -0.50px; - } + .history-section { align-self: stretch; diff --git a/src/views/agent/chat/index.vue b/src/views/agent/chat/index.vue index 23c4301..b95cd4a 100644 --- a/src/views/agent/chat/index.vue +++ b/src/views/agent/chat/index.vue @@ -14,20 +14,23 @@ class="history-chat-col"> + -
- - - -
- + :xl="isCollapsed ? 24 : 16" class="chat-content-col"> -
+ +
+
+ + + +
+
+
@@ -107,7 +110,7 @@ const initChat = async () => { } Object.assign(cozeInfo, data.info); - await loadScript('https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.10/libs/cn/index.js'); + await loadScript('https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.17/libs/cn/index.js'); let cozeConfig = await cozeWebSdkConfig(data.info.bot_id, data.info.name, data.info.auth, data.info.user_info); cozeWebSDK = cozeWebSDK = new CozeWebSDK.WebChatClient(cozeConfig); showChatPage(); @@ -124,7 +127,7 @@ const cozeWebSdkConfig = (botId, name, auth, userInfo) => { ui: { chatBot: { el: document.getElementById('coze-chat-container'), - width: '80%', + width: '95%', height: '100%', title: name, isNeedFunctionCallMessage: true, @@ -132,10 +135,20 @@ const cozeWebSdkConfig = (botId, name, auth, userInfo) => { base: { icon: '', zIndex: 1000, + lang:'zh-CN' }, footer: { expressionText: '内容由AI生成,无法确保真实准确,仅供参考。', }, + header: { + isShow: true, + isNeedClose: true + }, + conversations: { + isNeed: true, + isNeedAddNewConversationBoolean: true, + isNeedQuoteBoolean: true, + } }, auth: auth, userInfo: userInfo, diff --git a/src/views/agent/work-flow/components/DynamicForm.vue b/src/views/agent/work-flow/components/DynamicForm.vue index aae6ccb..d3cfb62 100644 --- a/src/views/agent/work-flow/components/DynamicForm.vue +++ b/src/views/agent/work-flow/components/DynamicForm.vue @@ -17,12 +17,20 @@ /> - - + + - - 提交执行 + 提交执行