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 => {