Browse Source

优化上传参数处理

Karson 1 year ago
parent
commit
de5c92e78a
1 changed files with 0 additions and 1 deletions
  1. 0 1
      public/assets/js/require-upload.js

+ 0 - 1
public/assets/js/require-upload.js

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