From 69fe0169dd95a5679bbf8165d942fe53d6d0c60e Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 27 Oct 2023 17:38:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=92=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E4=B8=AD=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/imgUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/utils/imgUtils.ts b/core/core-frontend/src/utils/imgUtils.ts index b1e4ceb953..a6d85aff49 100644 --- a/core/core-frontend/src/utils/imgUtils.ts +++ b/core/core-frontend/src/utils/imgUtils.ts @@ -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/') } }