mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-28 09:43:19 +08:00
Update index.vue
FIX:修复每次对话携带多余数据的问题
This commit is contained in:
parent
d8ae43a897
commit
e102bbf021
@ -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]])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user