添加自定义类型
This commit is contained in:
parent
1d58308d4f
commit
48dd9bfc7a
@ -241,6 +241,7 @@ layui.define(function(exports) {
|
|||||||
file: function (opt) {
|
file: function (opt) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var fileType = opt.type;
|
var fileType = opt.type;
|
||||||
|
var customType = opt.customType;
|
||||||
var url = 'route/file/uploadfile/v2/';
|
var url = 'route/file/uploadfile/v2/';
|
||||||
if (fileType == 'image') {
|
if (fileType == 'image') {
|
||||||
url += '2';
|
url += '2';
|
||||||
@ -251,6 +252,9 @@ layui.define(function(exports) {
|
|||||||
} else {
|
} else {
|
||||||
url += '1';
|
url += '1';
|
||||||
}
|
}
|
||||||
|
if(customType) {
|
||||||
|
url += '?customType='+ customType;
|
||||||
|
}
|
||||||
if (typeof (opt.maxFileCount) != 'undefined' && opt.maxFileCount != '') {
|
if (typeof (opt.maxFileCount) != 'undefined' && opt.maxFileCount != '') {
|
||||||
self.maxFileCount = opt.maxFileCount;
|
self.maxFileCount = opt.maxFileCount;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user