mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
添加svg上传扩展名;增加上传扩展名自动匹配分组用法;
This commit is contained in:
@@ -41,7 +41,7 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
||||
|
||||
var extGroup = {
|
||||
// 图片扩展名数组
|
||||
'image': ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'webp'],
|
||||
'image': ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'webp', 'svg'],
|
||||
// word扩展名数组
|
||||
'word': ['doc', 'docx'],
|
||||
// excel扩展名数组
|
||||
@@ -1975,6 +1975,11 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick
|
||||
|
||||
if (uploadExts == '*') {
|
||||
uploadExts = init.upload_exts;
|
||||
}else if(uploadExts.charAt(0) == '*'){
|
||||
var extGroupName = uploadExts.slice(1);
|
||||
if(extGroup[extGroupName]){
|
||||
uploadExts = extGroup[extGroupName].join('|');
|
||||
}
|
||||
}
|
||||
|
||||
// 监听上传事件
|
||||
|
||||
Reference in New Issue
Block a user