From 3c9be781a639f9dabe52cb3f5a877c183f07e25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BF=97=E5=86=9B?= <543024265@qq.com> Date: Fri, 18 Jul 2025 16:51:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Agent/Chat):=20=E4=BD=BF=E7=94=A8=20co?= =?UTF-8?q?zeInfo=20=E6=9B=BF=E4=BB=A3=20botId=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 HistoryChat 组件中的 botId属性 - 使用 cozeInfo.bot_id 替代 botId 获取历史聊天数据 --- src/views/Agent/Chat/components/HistoryChat.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/views/Agent/Chat/components/HistoryChat.vue b/src/views/Agent/Chat/components/HistoryChat.vue index 1ead5f6..abf5104 100644 --- a/src/views/Agent/Chat/components/HistoryChat.vue +++ b/src/views/Agent/Chat/components/HistoryChat.vue @@ -39,11 +39,7 @@ const props = defineProps({ cozeInfo: { type: Object as () => any, default: () => ({}), - }, - botId: { - type: String, - default: '', - }, + } }); const delMessage = async (chatId, conversationId) => { @@ -67,7 +63,7 @@ const truncateText = (text: string, maxLength = 30) => { }; onMounted(() => { - getHistoryChatData(props.botId); + getHistoryChatData(props.cozeInfo.bot_id); });