fix(仪表板): 修复部分图片组件上传图片报错问题

This commit is contained in:
wangjiahao 2024-06-21 10:37:12 +08:00
parent 5a1e8ae108
commit 470adcc758
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 => {