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);