fix: 文档上传过滤空文件
This commit is contained in:
parent
794fd5af79
commit
052b4008e9
@ -227,6 +227,11 @@ const fileHandleChange = (file: any, fileList: UploadFiles) => {
|
|||||||
fileList.splice(-1, 1)
|
fileList.splice(-1, 1)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if (file?.size === 0) {
|
||||||
|
MsgError('文件不能为空')
|
||||||
|
fileList.splice(-1, 1)
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onExceed = () => {
|
const onExceed = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user