Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
af470abf
Commit
af470abf
authored
Jul 30, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传文件限制在 100M
parent
cbfb6634
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ImportAssetDrawer.jsx
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
+2
-2
ImportActionComment.jsx
src/view/Manage/Model/Component/ImportActionComment.jsx
+2
-2
start-flow.jsx
src/view/Manage/Model/Component/start-flow.jsx
+2
-2
No files found.
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
View file @
af470abf
...
@@ -111,9 +111,9 @@ const ImportAssetDrawer = (props) => {
...
@@ -111,9 +111,9 @@ const ImportAssetDrawer = (props) => {
},
},
beforeUpload
:
file
=>
{
beforeUpload
:
file
=>
{
const
isLt2OM
=
file
.
size
/
1024
/
1024
<
2
0
;
const
isLt2OM
=
file
.
size
/
1024
/
1024
<
10
0
;
if
(
!
isLt2OM
)
{
if
(
!
isLt2OM
)
{
showMessage
(
'error'
,
'上传文件必须小于
2
0M'
);
showMessage
(
'error'
,
'上传文件必须小于
10
0M'
);
setFileList
([]);
setFileList
([]);
return
false
;
return
false
;
}
}
...
...
src/view/Manage/Model/Component/ImportActionComment.jsx
View file @
af470abf
...
@@ -93,9 +93,9 @@ const FC = (props) => {
...
@@ -93,9 +93,9 @@ const FC = (props) => {
const
uploadProps
=
{
const
uploadProps
=
{
beforeUpload
:
file
=>
{
beforeUpload
:
file
=>
{
const
isLt20M
=
file
.
size
/
1024
/
1024
<
2
0
const
isLt20M
=
file
.
size
/
1024
/
1024
<
10
0
if
(
!
isLt20M
)
{
if
(
!
isLt20M
)
{
showMessage
(
'error'
,
'上传文件必须小于
2
0M'
)
showMessage
(
'error'
,
'上传文件必须小于
10
0M'
)
return
false
return
false
}
}
...
...
src/view/Manage/Model/Component/start-flow.jsx
View file @
af470abf
...
@@ -115,9 +115,9 @@ const Basic = React.forwardRef(function ({}, ref) {
...
@@ -115,9 +115,9 @@ const Basic = React.forwardRef(function ({}, ref) {
const
uploadProps
=
{
const
uploadProps
=
{
beforeUpload
:
file
=>
{
beforeUpload
:
file
=>
{
const
isLt5M
=
file
.
size
/
1024
/
1024
<
5
const
isLt5M
=
file
.
size
/
1024
/
1024
<
100
if
(
!
isLt5M
)
{
if
(
!
isLt5M
)
{
showMessage
(
'error'
,
'上传文件必须小于
5
M'
)
showMessage
(
'error'
,
'上传文件必须小于
100
M'
)
return
false
return
false
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment