fix: 仪表板和数据大屏中无法显示图片

This commit is contained in:
dataeaseShu 2023-10-27 17:38:36 +08:00
parent f82d9ad3e7
commit 69fe0169dd

View File

@ -11,10 +11,10 @@ export function imgUrlTrans(url) {
return window.DataEaseBi
? `${window.DataEaseBi.baseUrl}${
rawUrl.startsWith('/api') ? rawUrl.slice(5) : rawUrl
}`.replace('//', '/')
}`.replace('com//', 'com/')
: rawUrl
} else {
return url
return url.replace('com//', 'com/')
}
}