From e102bbf021ae43cef92a117488d1bed10b23269f Mon Sep 17 00:00:00 2001 From: mayfly Date: Sun, 21 May 2023 21:05:05 +0800 Subject: [PATCH] Update index.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FIX:修复每次对话携带多余数据的问题 --- views/src/views/chat/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/views/src/views/chat/index.vue b/views/src/views/chat/index.vue index bb5e831..f468d07 100644 --- a/views/src/views/chat/index.vue +++ b/views/src/views/chat/index.vue @@ -61,6 +61,7 @@ function handleSubmit() { async function onConversation() { const message = prompt.value + history.value = [] if (usingContext.value) { for (let i = 0; i < dataSources.value.length; i = i + 2) history.value.push([dataSources.value[i].text, dataSources.value[i + 1].text.split('\n\n数据来源:\n\n>')[0]])