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

This commit is contained in:
曹磊 2024-05-17 19:14:00 +08:00
parent b06e2e25ee
commit c944f33875
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ export const getFileAccessHttpUrl = (fileUrl, prefix = 'http') => {
//判断是否是数组格式
let isArray = fileUrl.indexOf('[') != -1;
if (!isArray) {
// let prefix = `${baseApiUrl}/sys/common/static/`;
let prefix = `${baseApiUrl}/zyk/zykInfo/static/`;
let prefix = `${baseApiUrl}/sys/common/static/`;
// let prefix = `${baseApiUrl}/zyk/zykInfo/static/`;
// 判断是否已包含前缀
if (!fileUrl.startsWith(prefix)) {
result = `${prefix}${fileUrl}`;