Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
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
shenshaokai
jinfa-platform
Commits
765df424
Commit
765df424
authored
May 10, 2022
by
ganke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 应付账单的图片限制在200kb以内的限制补充
parent
cd6d77a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
index.tsx
src/pages/balance/components/UploadVoucherModal/index.tsx
+6
-0
No files found.
src/pages/balance/components/UploadVoucherModal/index.tsx
View file @
765df424
...
...
@@ -80,6 +80,12 @@ const UploadVoucherModal: React.FC<UploadVocherProps> = (props) => {
},
[])
const
handleOnFileChange
=
(
info
:
UploadChangeParam
)
=>
{
console
.
log
(
info
);
const
isSizeLimit
=
info
.
file
.
size
/
1024
<
fileMaxSize
;
if
(
!
isSizeLimit
)
{
return
;
}
const
fileList
=
info
.
fileList
;
const
newList
=
fileList
.
map
((
file
)
=>
{
return
{
...
...
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