mirror of https://gitee.com/karson/fastadmin.git
优化上传参数处理
parent
d4c866cb55
commit
de5c92e78a
|
|
@ -228,7 +228,6 @@ define(['jquery', 'bootstrap', 'dropzone', 'template'], function ($, undefined,
|
|||
},
|
||||
addedfile: function (file) {
|
||||
var params = $(this.element).data("params") || {};
|
||||
params = typeof params === 'function' ? params.call(this, file) : params;
|
||||
var category = typeof params.category !== 'undefined' ? params.category : ($(this.element).data("category") || '');
|
||||
file.category = typeof category === 'function' ? category.call(this, file) : category;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue