修复文件上传

This commit is contained in:
邹景立 2021-07-30 19:49:47 +08:00
parent 7d6afeb48b
commit 1258d781d6

View File

@ -560,7 +560,7 @@ $(function () {
/*! 全局文件上传入口 */
$.fn.uploadFile = function (callable) {
if (this.data('inited')) return false;
var that = this, mult = 'one|btn'.indexOf(this.data('file') || 'one') > -1 ? 1 : 0;
var that = this, mult = 'one|btn'.indexOf(this.data('file') || 'one') > -1 ? 0 : 1;
this.data('inited', true).data('multiple', mult), require(['upload'], function (apply) {
apply.call(this, that, callable);
});