mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-06 23:15:53 +08:00
Update index.vue
FIX:修复每次对话携带多余数据的问题
This commit is contained in:
parent
d8ae43a897
commit
e102bbf021
@ -61,6 +61,7 @@ function handleSubmit() {
|
|||||||
|
|
||||||
async function onConversation() {
|
async function onConversation() {
|
||||||
const message = prompt.value
|
const message = prompt.value
|
||||||
|
history.value = []
|
||||||
if (usingContext.value) {
|
if (usingContext.value) {
|
||||||
for (let i = 0; i < dataSources.value.length; i = i + 2)
|
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]])
|
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