Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ae5dedf7
authored
Nov 23, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
84b3fa3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
hybrid-input/index.vue
hybrid-input/index.vue
View file @
ae5dedf7
...
@@ -228,19 +228,22 @@
...
@@ -228,19 +228,22 @@
const
file
=
items
[
i
].
getAsFile
();
const
file
=
items
[
i
].
getAsFile
();
if
(
file
)
{
if
(
file
)
{
if
(
file
.
size
<=
0
)
{
if
(
file
.
size
<=
0
)
{
this
.
$emit
(
"error"
,
MESSAGE_FILE_EMPTY
);
return
this
.
$emit
(
"error"
,
MESSAGE_FILE_EMPTY
);
return
;
}
}
if
(
this
.
isImage
(
file
))
{
if
(
this
.
isImage
(
file
))
{
if
(
file
.
size
>=
MAX_IMAGE_SIZE
)
{
if
(
file
.
size
>=
MAX_IMAGE_SIZE
)
{
this
.
$emit
(
"error"
,
MESSAGE_IMAGE_TOO_LARGE
);
return
this
.
$emit
(
return
;
"error"
,
MESSAGE_IMAGE_TOO_LARGE
);
}
}
html
+=
this
.
buildImageHtml
(
file
);
html
+=
this
.
buildImageHtml
(
file
);
}
else
{
}
else
{
if
(
file
.
size
>=
MAX_FILE_SIZE
)
{
if
(
file
.
size
>=
MAX_FILE_SIZE
)
{
this
.
$emit
(
"error"
,
MESSAGE_FILE_TOO_LARGE
);
return
this
.
$emit
(
return
;
"error"
,
MESSAGE_FILE_TOO_LARGE
);
}
}
html
+=
this
.
buildFileHtml
(
file
);
html
+=
this
.
buildFileHtml
(
file
);
}
}
...
...
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