Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
wanli
evm-store
Commits
21ddedc0
Commit
21ddedc0
authored
Apr 16, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新前端
parent
3bd48911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
frontend/src/views/system/profile.vue
frontend/src/views/system/profile.vue
+23
-0
No files found.
frontend/src/views/system/profile.vue
View file @
21ddedc0
...
...
@@ -130,6 +130,18 @@
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane
label=
"接口密钥"
name=
"apiKey"
>
<el-form
size=
"mini"
label-width=
"100px"
>
<el-form-item
label=
"AccessKey"
>
<el-col
:md=
"10"
:xs=
"24"
>
<el-input
v-model=
"user.uuid"
type=
"text"
autocomplete=
"off"
disabled
/>
</el-col>
<el-col
:md=
"4"
:xs=
"24"
>
<el-button
@
click=
"copyAccessKey"
>
复制
</el-button>
</el-col>
</el-form-item>
</el-form>
</el-tab-pane>
</el-tabs>
</el-card>
</el-col>
...
...
@@ -158,6 +170,7 @@ export default {
contact
:
""
,
hometown
:
""
,
gender
:
1
,
uuid
:
""
,
},
form
:
{
password
:
""
,
...
...
@@ -210,6 +223,7 @@ export default {
this
.
user
.
contact
=
user
.
contact
;
this
.
user
.
hometown
=
user
.
hometown
;
this
.
user
.
gender
=
user
.
gender
;
this
.
user
.
uuid
=
user
.
uuid
;
}
},
submitForm
(
formName
)
{
...
...
@@ -233,6 +247,15 @@ export default {
return
result
;
});
},
copyAccessKey
()
{
let
oInput
=
document
.
createElement
(
'
input
'
)
oInput
.
value
=
this
.
user
.
uuid
document
.
body
.
appendChild
(
oInput
)
oInput
.
select
()
document
.
execCommand
(
"
Copy
"
)
this
.
$message
({
message
:
'
复制成功
'
,
type
:
'
success
'
})
oInput
.
remove
()
},
updatePassword
()
{
if
(
this
.
form
.
password
.
trim
().
length
>
0
&&
...
...
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