From 2eadf8d9f5f8988d3f7fb20b7ea94461acffcf4d Mon Sep 17 00:00:00 2001 From: fxjhello <2395112364@qq.com> Date: Tue, 16 May 2023 10:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=90=8E=E7=AB=AF=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/src/api/chat.ts | 3 +++ views/src/views/chat/layout/sider/knowledge-base/filelist.vue | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/views/src/api/chat.ts b/views/src/api/chat.ts index 24d9425..349edd7 100644 --- a/views/src/api/chat.ts +++ b/views/src/api/chat.ts @@ -35,3 +35,6 @@ export const deletefile = (params: any) => { export const web_url = () => { return window.location.origin } +export const setapi = () => { + return window.baseApi +} diff --git a/views/src/views/chat/layout/sider/knowledge-base/filelist.vue b/views/src/views/chat/layout/sider/knowledge-base/filelist.vue index 985b630..7a6a202 100644 --- a/views/src/views/chat/layout/sider/knowledge-base/filelist.vue +++ b/views/src/views/chat/layout/sider/knowledge-base/filelist.vue @@ -3,7 +3,7 @@ import { onMounted, ref, toRef } from 'vue' import { NInput, NP, NPopconfirm, NScrollbar, NText, NUpload, NUploadDragger } from 'naive-ui' import { SvgIcon } from '@/components/common' import { useChatStore } from '@/store' -import { deletefile, getfilelist, web_url } from '@/api/chat' +import { deletefile, getfilelist, setapi, web_url } from '@/api/chat' const knowledge = defineProps({ knowledgebaseid: { type: String, // 类型字符串 @@ -41,7 +41,7 @@ function handleEnter({ uuid }: Chat.History, isEdit: boolean, event: KeyboardEve