Browse Source

助手优化

master
xueyinfei 4 weeks ago
parent
commit
38773a5c83
  1. 2
      vue-fastapi-frontend/src/views/aichat/MdRenderer.vue
  2. 8
      vue-fastapi-frontend/src/views/aichat/aichat.vue

2
vue-fastapi-frontend/src/views/aichat/MdRenderer.vue

@ -71,7 +71,7 @@ function jumpToPath(content){
function downLoadFile(doc){
let data = {file:doc.file_name,bucket: doc.bucket,sessionId: doc.session_id}
proxy.download("/default-api/aichat/file/download", {
proxy.download("/aichat/file/download", {
...data,
}, doc.file_name);
}

8
vue-fastapi-frontend/src/views/aichat/aichat.vue

@ -342,11 +342,11 @@ function setScrollBottom() {
function confirmReturn(item,index){
DeleteChatList(item.chatId).then(res=>{
const index = autoProcess.value.autoArray.indexOf("item.interrupt.robot");
if (index !== -1) {
autoProcess.value.autoArray.splice(index, 1);
const index1 = autoProcess.value.autoArray.indexOf("item.interrupt.robot");
if (index1 !== -1) {
autoProcess.value.autoArray.splice(index1, 1);
}
chatList.value.splice(index, chatList.value.length - index);
chatList.value.splice(index);
let reqData = {
"user_id": cache.local.get("username"),
"session_id": Cookies.get("chatSessionId"),

Loading…
Cancel
Save