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
2024-06-12 21:11:24 +08:00 committed by GitHub
parent 1f9bdffc59
commit 28605f8125
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -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{