Merge pull request #10428 from dataease/pr@dev-v2@fix_picture-upload

fix(仪表板): 修复部分图片组件上传图片报错问题
This commit is contained in:
王嘉豪 2024-06-21 10:38:16 +08:00 committed by GitHub
commit 17b5f1d210
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -20,7 +20,7 @@
id="input"
ref="files"
type="file"
accept=".jpeg,.jpg,.png,.gif"
accept=".jpeg,.jpg,.png,.gif,.svg"
hidden
@click="
e => {

View File

@ -4,7 +4,7 @@
id="input"
ref="files"
type="file"
accept=".jpeg,.jpg,.png,.gif"
accept=".jpeg,.jpg,.png,.gif,.svg"
hidden
@click="
e => {

View File

@ -4,7 +4,7 @@
id="input"
ref="files"
type="file"
accept=".jpeg,.jpg,.png,.gif"
accept=".jpeg,.jpg,.png,.gif,.svg"
hidden
@click="
e => {

View File

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

View File

@ -4,7 +4,7 @@
id="input"
ref="files"
type="file"
accept=".jpeg,.jpg,.png,.gif"
accept=".jpeg,.jpg,.png,.gif,.svg"
hidden
@click="
e => {