Merge pull request #881 from juneszh/patch-3

修复拖拽上传时 index 为 0 的bug
This commit is contained in:
贤心 2022-06-01 01:07:35 +08:00 committed by GitHub
commit 411da3947f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,12 +521,7 @@ layui.define('layer' , function(exports){
othis.removeAttr('lay-over');
setChooseFile(files);
if(options.auto){
that.upload(files);
} else {
setChooseText(files);
}
options.auto ? that.upload() : setChooseText(files); //是否自动触发上传
});
}