mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 23:24:32 +08:00
fix(upload): 修复 auto 选项开启时再次选择同一文件不自动上传的问题 (#1991)
* Update upload.js * table组件增加toolbar渲染完毕后的回调函数 * Revert "table组件增加toolbar渲染完毕后的回调函数" This reverts commit 8dc98445a38e2e08c4eee29b0bc0195ad9c1d3b8. * 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>
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user