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
3878599c
Commit
3878599c
authored
Jan 06, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复图片上传时自动打开摄像头的bug、修复头像上传处未对文件类型做出限制的bug
parent
ffe999f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BaseInfo.vue
src/views/template/components/BaseInfo.vue
+1
-1
AccountNum.vue
src/views/userCenter/AccountNum.vue
+1
-1
No files found.
src/views/template/components/BaseInfo.vue
View file @
3878599c
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
id=
"thumb"
id=
"thumb"
style=
"display:none"
style=
"display:none"
@
change=
"handleFileChange"
@
change=
"handleFileChange"
accept=
"
.png,.jpg,.jpeg,.
gif"
accept=
"
image/png,image/jpg,image/jpeg,image/
gif"
/>
/>
<label
<label
for=
"thumb"
for=
"thumb"
...
...
src/views/userCenter/AccountNum.vue
View file @
3878599c
<
template
>
<
template
>
<div
class=
"account-num"
>
<div
class=
"account-num"
>
<input
type=
"file"
name=
"img"
@
change=
"change"
id=
"input"
style=
"display:none;"
>
<input
type=
"file"
name=
"img"
@
change=
"change"
id=
"input"
style=
"display:none;"
accept=
"image/png,image/jpg,image/jpeg,image/gif"
>
<h5-cropper
:option=
"option"
hide-input
@
getFile=
"getFile"
ref=
"cropper"
></h5-cropper>
<h5-cropper
:option=
"option"
hide-input
@
getFile=
"getFile"
ref=
"cropper"
></h5-cropper>
<label
class=
"item"
for=
"input"
>
<label
class=
"item"
for=
"input"
>
<div
class=
"title"
>
头像
</div>
<div
class=
"title"
>
头像
</div>
...
...
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