From b32c7b60297f2df620c407459306afb578305dda Mon Sep 17 00:00:00 2001 From: dolphin Date: Thu, 11 Sep 2025 16:53:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20baseUrl=E4=BA=8C=E7=BA=A7=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E7=9B=B8=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/client/src/components/Avator/index.tsx | 2 +- .../client/src/components/Chat/Input/Files/MyKnowledgeView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/client/src/components/Avator/index.tsx b/src/frontend/client/src/components/Avator/index.tsx index 3238cdaf1..650b91fc1 100644 --- a/src/frontend/client/src/components/Avator/index.tsx +++ b/src/frontend/client/src/components/Avator/index.tsx @@ -21,7 +21,7 @@ export default function AppAvator({ id = 1, flowType = '', url = '', className = return gradients[parseInt(num + '', 16) % gradients.length] }, [id]) - if (url) return + if (url) return const flowIcons = { 1: diff --git a/src/frontend/client/src/components/Chat/Input/Files/MyKnowledgeView.tsx b/src/frontend/client/src/components/Chat/Input/Files/MyKnowledgeView.tsx index 3d6a44048..6c729ef53 100644 --- a/src/frontend/client/src/components/Chat/Input/Files/MyKnowledgeView.tsx +++ b/src/frontend/client/src/components/Chat/Input/Files/MyKnowledgeView.tsx @@ -35,7 +35,7 @@ export default function MyKnowledgeView({ open, onOpenChange }) { const res = await useGetDownloadUrl(object_name) - return axios.get(res.data, { responseType: "blob" }).then((res: any) => { + return axios.get(__APP_ENV__.BASE_URL + res.data, { responseType: "blob" }).then((res: any) => { const blob = new Blob([res.data]); const link = document.createElement("a"); link.href = URL.createObjectURL(blob);