From 1c180d70f0445fa804b40df106e1fdbb50508c55 Mon Sep 17 00:00:00 2001 From: yinbangzhong <zhongbangyin@126.com> Date: 星期一, 02 九月 2024 09:22:33 +0800 Subject: [PATCH] 单文档 --- src/views/sessionManager/components/seniorAgentSession.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/sessionManager/components/seniorAgentSession.vue b/src/views/sessionManager/components/seniorAgentSession.vue index 0e2c148..e7f59f6 100644 --- a/src/views/sessionManager/components/seniorAgentSession.vue +++ b/src/views/sessionManager/components/seniorAgentSession.vue @@ -298,6 +298,7 @@ ref="fileInput" :sessionId="activeSessionId" :handleRemove="handleRemove" + :typeXLse="false" @selectFileCallback="selectFileCallback" ></uploadFile> <a-button @@ -562,6 +563,7 @@ prompts.value = session.prompts; activeSessionId.value = ''; + EventBus.emit('queryAgent', uploaditemList.value); uploaditemList.value = []; console.log(12123); getAentId(session.id); @@ -709,8 +711,9 @@ conversation_id.value = session.id; activeSessionId.value = session.id; dialog_id.value = session.dialog_id; - + EventBus.emit('queryAgent', uploaditemList.value); uploaditemList.value = []; + getAentId(session.dialog_id); from.name = session.name; const { code, data } = await getSessionDetailsApi(session.id); @@ -956,7 +959,7 @@ const x = await reader?.read(); if (x) { const { done, value } = x; - // console.log(x, 999); + console.log(x, 999); if (value && value?.event == 'message') { try { @@ -969,9 +972,9 @@ if (d?.content) { streamStr.value = d.content; } else { - streamStr.value = d.code; + streamStr.value = d.code + d.sql; } - + EventBus.emit('queryAgent', uploaditemList.value); startDisplayStr(); } } catch (e) { -- Gitblit v1.8.0