Commit 4ee1f970 by zhaochengxiang

bug fix

parent 43e213af
......@@ -93,9 +93,9 @@ const FC = (props) => {
const uploadProps = {
beforeUpload: file => {
const isLt5M = file.size / 1024 / 1024 < 5
if (!isLt5M) {
showMessage('error', '上传文件必须小于5M')
const isLt20M = file.size / 1024 / 1024 < 20
if (!isLt20M) {
showMessage('error', '上传文件必须小于20M')
return false
}
......
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