文件本地下载改成从资源库下载
This commit is contained in:
parent
8f9fed7395
commit
b06e2e25ee
|
@ -17,7 +17,8 @@ export const getFileAccessHttpUrl = (fileUrl, prefix = 'http') => {
|
|||
//判断是否是数组格式
|
||||
let isArray = fileUrl.indexOf('[') != -1;
|
||||
if (!isArray) {
|
||||
let prefix = `${baseApiUrl}/sys/common/static/`;
|
||||
// let prefix = `${baseApiUrl}/sys/common/static/`;
|
||||
let prefix = `${baseApiUrl}/zyk/zykInfo/static/`;
|
||||
// 判断是否已包含前缀
|
||||
if (!fileUrl.startsWith(prefix)) {
|
||||
result = `${prefix}${fileUrl}`;
|
||||
|
|
Loading…
Reference in New Issue