Browse Source

Update upload.js

修复拖拽上传时index为0的bug
pull/881/head
juneszh 4 years ago committed by GitHub
parent
commit
7ddc0a39d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/modules/upload.js

7
src/modules/upload.js

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

Loading…
Cancel
Save