mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix(Uploader): oversize event untriggered when upload same file (#5177)
This commit is contained in:
@@ -144,12 +144,13 @@ export default createComponent({
|
||||
},
|
||||
|
||||
onAfterRead(files, oversize) {
|
||||
this.resetInput();
|
||||
|
||||
if (oversize) {
|
||||
this.$emit('oversize', files, this.getDetail());
|
||||
return;
|
||||
}
|
||||
|
||||
this.resetInput();
|
||||
this.$emit('input', [...this.fileList, ...toArray(files)]);
|
||||
|
||||
if (this.afterRead) {
|
||||
|
Reference in New Issue
Block a user