mirror of
https://github.com/dataelement/bisheng.git
synced 2026-10-30 18:42:04 +08:00
fix: baseUrl二级路由相关问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user