From 0f0c48169b417ef0c63a0c3911e40deddd400ac2 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 24 May 2024 15:43:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=9B=BE=E7=89=87=E7=BB=84=E4=BB=B6=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E7=9B=B8=E5=AF=B9=E8=B7=AF=E5=BE=84=E8=AE=BF=E9=97=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/components/canvas/DeCanvas.vue | 2 +- core/frontend/src/components/canvas/utils/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/components/canvas/DeCanvas.vue b/core/frontend/src/components/canvas/DeCanvas.vue index 61e3370276..ff553650ab 100644 --- a/core/frontend/src/components/canvas/DeCanvas.vue +++ b/core/frontend/src/components/canvas/DeCanvas.vue @@ -447,7 +447,7 @@ export default { icon: '', hyperlinks: HYPERLINKS, mobileStyle: BASE_MOBILE_STYLE, - propValue: imgUrlTrans(fileUrl), + propValue: fileUrl, commonBackground: deepCopy(COMMON_BACKGROUND), style: { ...PIC_STYLE diff --git a/core/frontend/src/components/canvas/utils/utils.js b/core/frontend/src/components/canvas/utils/utils.js index 246a04ed96..d5f8e38d5c 100644 --- a/core/frontend/src/components/canvas/utils/utils.js +++ b/core/frontend/src/components/canvas/utils/utils.js @@ -299,7 +299,7 @@ export function colorReverse(OldColorValue) { } export function imgUrlTrans(url) { - if (url && typeof url === 'string' && url.indexOf('static-resource') > -1 && url.indexOf('http') === -1) { + if (url && typeof url === 'string' && url.indexOf('static-resource') > -1 && url.indexOf('http') === -1 && url.indexOf('./') === -1) { return process.env.VUE_APP_BASE_API + url.replace('/static-resource', 'static-resource') } else { return url