mirror of https://github.com/layui/layui
fix(upload): 修复 auto 选项开启时再次选择同一文件不自动上传的问题 (#1991)
* Update upload.js
* table组件增加toolbar渲染完毕后的回调函数
* Revert "table组件增加toolbar渲染完毕后的回调函数"
This reverts commit 8dc98445a3
.
* chore: lint
* update
* 上传组件增加文件队列为空的提示(使用场景:auto 为false时)
* 修复文件上传队列为空的判断问题(auto:false时)
* chore: 剔除与标题无关的变更,新增提示建议新开 PR。
* chore: 剔除与标题无关的变更,新增提示建议新开 PR。
* chore: 剔除注释后面的多余逗号
* chore: lint
---------
Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com>
Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
pull/2014/head
parent
1f9bdffc59
commit
28605f8125
|
@ -506,8 +506,15 @@ layui.define(['lay', 'layer'], function(exports){
|
|||
.then(function(result){
|
||||
if(result !== false){
|
||||
ready();
|
||||
} else {
|
||||
if(options.auto){
|
||||
elemFile.value = '';
|
||||
}
|
||||
}
|
||||
}, function(error){
|
||||
if(options.auto){
|
||||
elemFile.value = '';
|
||||
}
|
||||
error !== undefined && layui.hint().error(error);
|
||||
})
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue