mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 文档上传过滤空文件
This commit is contained in:
parent
794fd5af79
commit
052b4008e9
|
|
@ -227,6 +227,11 @@ const fileHandleChange = (file: any, fileList: UploadFiles) => {
|
|||
fileList.splice(-1, 1)
|
||||
return false
|
||||
}
|
||||
if (file?.size === 0) {
|
||||
MsgError('文件不能为空')
|
||||
fileList.splice(-1, 1)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
const onExceed = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue