fix: baseUrl二级路由相关问题

This commit is contained in:
dolphin
2025-09-11 16:53:39 +08:00
parent 81efc84436
commit b32c7b6029
2 changed files with 2 additions and 2 deletions
@@ -21,7 +21,7 @@ export default function AppAvator({ id = 1, flowType = '', url = '', className =
return gradients[parseInt(num + '', 16) % gradients.length]
}, [id])
if (url) return <img src={url} className={cn(`w-6 h-6 rounded-sm object-cover`, className)} />
if (url) return <img src={__APP_ENV__.BASE_URL + url} className={cn(`w-6 h-6 rounded-sm object-cover`, className)} />
const flowIcons = {
1: <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -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);