From 470adcc758306fb6364686f7d693c1026a8099a3 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 21 Jun 2024 10:37:12 +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=E9=83=A8=E5=88=86=E5=9B=BE=E7=89=87=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/visualization/server/StaticResourceServer.java | 2 +- .../src/components/visualization/common/DeUpload.vue | 2 +- .../component-background/BackgroundOverallCommon.vue | 2 +- .../visualization/component-background/CanvasBackground.vue | 2 +- core/core-frontend/src/custom-component/picture/Attr.vue | 2 +- .../src/views/dashboard/MobileBackgroundSelector.vue | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/core-backend/src/main/java/io/dataease/visualization/server/StaticResourceServer.java b/core/core-backend/src/main/java/io/dataease/visualization/server/StaticResourceServer.java index 5ddb6c01b3..33b94ccf6a 100644 --- a/core/core-backend/src/main/java/io/dataease/visualization/server/StaticResourceServer.java +++ b/core/core-backend/src/main/java/io/dataease/visualization/server/StaticResourceServer.java @@ -76,7 +76,7 @@ public class StaticResourceServer implements StaticResourceApi { return true; } // 判断其他图片 - if (image == null || image.getWidth() <= 0 || image.getHeight() <= 0 || !isValidSVG(file)) { + if (image == null || image.getWidth() <= 0 || image.getHeight() <= 0) { return false; } return true; diff --git a/core/core-frontend/src/components/visualization/common/DeUpload.vue b/core/core-frontend/src/components/visualization/common/DeUpload.vue index 8e5d7556a7..25a40d32d4 100644 --- a/core/core-frontend/src/components/visualization/common/DeUpload.vue +++ b/core/core-frontend/src/components/visualization/common/DeUpload.vue @@ -20,7 +20,7 @@ id="input" ref="files" type="file" - accept=".jpeg,.jpg,.png,.gif" + accept=".jpeg,.jpg,.png,.gif,.svg" hidden @click=" e => { diff --git a/core/core-frontend/src/components/visualization/component-background/BackgroundOverallCommon.vue b/core/core-frontend/src/components/visualization/component-background/BackgroundOverallCommon.vue index bc9149a725..9ef4f697a8 100644 --- a/core/core-frontend/src/components/visualization/component-background/BackgroundOverallCommon.vue +++ b/core/core-frontend/src/components/visualization/component-background/BackgroundOverallCommon.vue @@ -4,7 +4,7 @@ id="input" ref="files" type="file" - accept=".jpeg,.jpg,.png,.gif" + accept=".jpeg,.jpg,.png,.gif,.svg" hidden @click=" e => { diff --git a/core/core-frontend/src/components/visualization/component-background/CanvasBackground.vue b/core/core-frontend/src/components/visualization/component-background/CanvasBackground.vue index e046b30527..76c95d8b04 100644 --- a/core/core-frontend/src/components/visualization/component-background/CanvasBackground.vue +++ b/core/core-frontend/src/components/visualization/component-background/CanvasBackground.vue @@ -4,7 +4,7 @@ id="input" ref="files" type="file" - accept=".jpeg,.jpg,.png,.gif" + accept=".jpeg,.jpg,.png,.gif,.svg" hidden @click=" e => { diff --git a/core/core-frontend/src/custom-component/picture/Attr.vue b/core/core-frontend/src/custom-component/picture/Attr.vue index a118b5e757..aa4c0800b0 100644 --- a/core/core-frontend/src/custom-component/picture/Attr.vue +++ b/core/core-frontend/src/custom-component/picture/Attr.vue @@ -99,7 +99,7 @@ onBeforeUnmount(() => { id="input" ref="files" type="file" - accept=".jpeg,.jpg,.png,.gif" + accept=".jpeg,.jpg,.png,.gif,.svg" hidden @click=" e => { diff --git a/core/core-frontend/src/views/dashboard/MobileBackgroundSelector.vue b/core/core-frontend/src/views/dashboard/MobileBackgroundSelector.vue index 8c70590f2c..8cc8cfb488 100644 --- a/core/core-frontend/src/views/dashboard/MobileBackgroundSelector.vue +++ b/core/core-frontend/src/views/dashboard/MobileBackgroundSelector.vue @@ -4,7 +4,7 @@ id="input" ref="files" type="file" - accept=".jpeg,.jpg,.png,.gif" + accept=".jpeg,.jpg,.png,.gif,.svg" hidden @click=" e => {