Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
9b5cd4cb
Commit
9b5cd4cb
authored
Oct 15, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 上传图片
parent
93fa3ed6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
form.vue
src/views/game/dzp/form.vue
+4
-2
No files found.
src/views/game/dzp/form.vue
View file @
9b5cd4cb
...
...
@@ -334,9 +334,11 @@ export default {
methods
:
{
beforeUpload
(
file
)
{
if
(
!
[
'image/jpeg'
,
'image/png'
].
includes
(
file
.
type
))
{
return
this
.
$message
.
warning
(
'图片格式错误'
);
this
.
$message
.
warning
(
'图片格式错误'
);
return
false
;
}
else
if
(
file
.
size
>
1024
*
1024
)
{
return
this
.
$message
.
warning
(
'图片大小超过1MB'
);
this
.
$message
.
warning
(
'图片大小超过1MB'
);
return
false
;
}
}
,
onUploaded
(
row
)
{
...
...
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