Commit b0bf3a2f24d28a9f7532c94fff37a7e83cb42011

Authored by aaron
1 parent 22147ca4

feat: 新增图片格式

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
packages/upload/index.vue
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 <script> 80 <script>
81 import ElImageViewer from './image-viewer'; 81 import ElImageViewer from './image-viewer';
82 82
83 -const imgExtensions = ['.bmp', '.jpg', '.png', '.tif', '.gif', '.pcx', '.tga', '.exif', '.fpx', '.svg']; 83 +const imgExtensions = ['.bmp', '.jpg', '.jpeg', '.png', '.tif', '.gif', '.pcx', '.tga', '.exif', '.fpx', '.svg', '.webp'];
84 84
85 // 获取文件类型 85 // 获取文件类型
86 const getFileType = function(url) { 86 const getFileType = function(url) {