forked from github/dataease
fix: 仪表板和数据大屏中无法显示图片
This commit is contained in:
parent
f82d9ad3e7
commit
69fe0169dd
@ -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/')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user