Commit 9ad10e6f authored by 田翔's avatar 田翔

fix: 上传空文件禁止上传

parent 6e37f8de
{
"name": "panda-xform",
"version": "6.0.6",
"description": "6.0.6 因为特殊图片路径导致图片无法删除",
"version": "6.0.7",
"description": "6.0.7 上传空文件禁止上传",
"keywords": [
"panda-xform"
],
......
......@@ -123,6 +123,9 @@ const FileUpload = (props) => {
return _continueUpload;
},
onChange: ({ file, fileList, event }) => {
if (!file.size) {
return message.error('上传文件为空,禁止上传!')
}
// 检验名字,名字不通过不允许显示
if (filenameVerification(file).type === 'error') return false;
// 返回的链接在file.response内;不设置url,预览图表不可点击
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment