forked from github/dataease
commit
b9037a7ce3
@ -15,7 +15,7 @@ const state = reactive({
|
|||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
initCanvasDataPrepare(
|
initCanvasDataPrepare(
|
||||||
window.DataEaseBi.dvId,
|
window.DataEaseBi.dvId,
|
||||||
'dashboard',
|
window.DataEaseBi.busiFlag,
|
||||||
function ({
|
function ({
|
||||||
canvasDataResult,
|
canvasDataResult,
|
||||||
canvasStyleResult,
|
canvasStyleResult,
|
||||||
|
@ -11,10 +11,10 @@ export function imgUrlTrans(url) {
|
|||||||
return window.DataEaseBi
|
return window.DataEaseBi
|
||||||
? `${window.DataEaseBi.baseUrl}${
|
? `${window.DataEaseBi.baseUrl}${
|
||||||
rawUrl.startsWith('/api') ? rawUrl.slice(5) : rawUrl
|
rawUrl.startsWith('/api') ? rawUrl.slice(5) : rawUrl
|
||||||
}`.replace('//', '/')
|
}`.replace('com//', 'com/')
|
||||||
: rawUrl
|
: rawUrl
|
||||||
} else {
|
} else {
|
||||||
return url
|
return url.replace('com//', 'com/')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user