Commit b47c82dd by zhaochengxiang

bug fix

parent 80a19a0e
......@@ -111,9 +111,9 @@ const ImportAssetDrawer = (props) => {
},
beforeUpload: file => {
const isLt2OM = file.size / 1024 / 1024 < 100;
const isLt2OM = file.size / 1024 / 1024 <= 100;
if (!isLt2OM) {
showMessage('error', '上传文件必须小于100M');
showMessage('error', '上传文件限制最大100M');
setFileList([]);
return false;
}
......
......@@ -93,9 +93,9 @@ const FC = (props) => {
const uploadProps = {
beforeUpload: file => {
const isLt20M = file.size / 1024 / 1024 < 100
const isLt20M = file.size / 1024 / 1024 <= 100
if (!isLt20M) {
showMessage('error', '上传文件必须小于100M')
showMessage('error', '上传文件限制最大100M')
return false
}
......
......@@ -115,9 +115,9 @@ const Basic = React.forwardRef(function ({}, ref) {
const uploadProps = {
beforeUpload: file => {
const isLt5M = file.size / 1024 / 1024 < 100
const isLt5M = file.size / 1024 / 1024 <= 100
if (!isLt5M) {
showMessage('error', '上传文件必须小于100M')
showMessage('error', '上传文件限制最大100M')
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