优化上传参数处理

pull/463/MERGE
Karson 2024-04-03 09:29:19 +08:00
parent d4c866cb55
commit de5c92e78a
1 changed files with 0 additions and 1 deletions

View File

@ -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;
},