Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
96f36bb6
Commit
96f36bb6
authored
Aug 10, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
b87cebf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
single-upload.vue
src/components/single-upload.vue
+5
-1
No files found.
src/components/single-upload.vue
View file @
96f36bb6
...
...
@@ -149,15 +149,19 @@ export default {
if
((
that
.
uploadType
==
1
||
that
.
uploadType
==
2
||
that
.
uploadType
==
4
)
&&
!
isJPG
)
{
that
.
$message
.
error
(
`上传图片支持
${
this
.
imgType
.
map
((
item
)
=>
item
.
split
(
'/'
)[
1
]).
join
(
'、'
)}
格式!`
);
}
return
false
;
}
if
((
that
.
uploadType
==
1
||
that
.
uploadType
==
2
||
that
.
uploadType
==
4
)
&&
!
isLt2M
)
{
that
.
$message
.
error
(
`上传图片大小不能超过
${
uploadLimit
}${
unit
}
!`
);
return
false
;
}
if
(
that
.
uploadType
==
3
&&
!
isMP4
)
{
that
.
$message
.
error
(
'上传视频支持MP4格式!'
);
return
false
;
}
if
(
that
.
uploadType
==
3
&&
!
isLt2M
)
{
that
.
$message
.
error
(
`上传视频大小不能超过
${
uploadLimit
}${
unit
}
!`
);
return
false
;
}
if
(
that
.
uploadType
==
3
)
{
return
isMP4
&&
isLt2M
;
...
...
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