feat: 重构报告模块中文件预览地址的获取逻辑,改用file字段信息拼接完整路径
parent
9fde6a92d5
commit
5f360a66dc
@ -0,0 +1,6 @@
|
||||
export function getFileUrl(filePath: string) {
|
||||
if (!filePath) {
|
||||
return '';
|
||||
}
|
||||
return window.location.origin + "/storage/" + filePath;
|
||||
}
|
||||
Loading…
Reference in New Issue