文件本地下载改成从资源库下载

This commit is contained in:
曹磊 2024-05-17 18:38:28 +08:00
parent 8f9fed7395
commit b06e2e25ee
1 changed files with 2 additions and 1 deletions

View File

@ -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}`;