Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
f47811c9
Commit
f47811c9
authored
Dec 21, 2020
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 限制上传图片的类型
后端只支持png jpg jpeg gif类型的图片,前端需要做个限制。
parent
89efafb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AddBanner.vue
src/views/proof/components/AddBanner.vue
+1
-1
BaseInfo.vue
src/views/template/components/BaseInfo.vue
+1
-1
No files found.
src/views/proof/components/AddBanner.vue
View file @
f47811c9
...
...
@@ -5,7 +5,7 @@
position=
"bottom"
:close-on-click-overlay=
"false"
:style=
"
{height: '100%'}">
<input
type=
"file"
name=
"img"
@
change=
"change"
id=
"inputbanner"
style=
"display:none;"
>
<input
type=
"file"
name=
"img"
@
change=
"change"
id=
"inputbanner"
style=
"display:none;"
accept=
".png,.jpg,.gif,.jpeg"
>
<h5-cropper
:option=
"option"
hide-input
@
getFile=
"getFile"
ref=
"cropper"
></h5-cropper>
<label
for=
"inputbanner"
>
<div
class=
"add"
>
...
...
src/views/template/components/BaseInfo.vue
View file @
f47811c9
...
...
@@ -14,7 +14,7 @@
<span>
创建模板
</span>
</div>
<van-field
v-model=
"templateName"
placeholder=
"填写模板名称"
></van-field>
<input
type=
"file"
id=
"thumb"
style=
"display:none"
@
change=
"handleFileChange"
>
<input
type=
"file"
id=
"thumb"
style=
"display:none"
@
change=
"handleFileChange"
accept=
".png,.jpg,.jpeg,.gif"
>
<label
for=
"thumb"
class=
"file-input"
style=
"padding: 10px 15px;margin:0 17px;"
>
<common-svg
name=
"tianjia"
style=
"margin-right:10px;"
></common-svg>
<span>
{{
imgUrl
?
'已上传'
:
'添加模板封面'
}}
</span>
...
...
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