Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Administrator
dsk-cr20g
Commits
e571e9fe
Commit
e571e9fe
authored
Jun 27, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
738cd02a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
resetPwd.vue
dsk-operate-ui/src/views/system/user/profile/resetPwd.vue
+4
-2
userAvatar.vue
dsk-operate-ui/src/views/system/user/profile/userAvatar.vue
+1
-1
No files found.
dsk-operate-ui/src/views/system/user/profile/resetPwd.vue
View file @
e571e9fe
...
@@ -57,12 +57,14 @@ export default {
...
@@ -57,12 +57,14 @@ export default {
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
updateUserPwd
(
this
.
user
.
oldPassword
,
this
.
user
.
newPassword
).
then
(
response
=>
{
updateUserPwd
(
this
.
user
.
oldPassword
,
this
.
user
.
newPassword
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
)
;
this
.
$modal
.
msgSuccess
(
"修改成功"
)
store
.
commit
(
'SET_TOKEN'
,
''
)
store
.
commit
(
'SET_TOKEN'
,
''
)
store
.
commit
(
'SET_ROLES'
,
[])
store
.
commit
(
'SET_ROLES'
,
[])
store
.
commit
(
'SET_PERMISSIONS'
,
[])
store
.
commit
(
'SET_PERMISSIONS'
,
[])
removeToken
()
removeToken
()
location
.
href
=
'/index'
setTimeout
(
function
()
{
location
.
href
=
'/index'
},
2000
)
});
});
}
}
});
});
...
...
dsk-operate-ui/src/views/system/user/profile/userAvatar.vue
View file @
e571e9fe
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<div
class=
"user-info-head"
@
click=
"editCropper()"
>
<div
class=
"user-info-head"
@
click=
"editCropper()"
>
<img
v-bind:src=
"options.img"
title=
"点击上传头像"
class=
"img-circle img-lg"
v-if=
"options.img"
/>
<img
v-bind:src=
"options.img"
title=
"点击上传头像"
class=
"img-circle img-lg"
v-if=
"options.img"
/>
<span
v-else
class=
"userInfo-avatar"
v-else
>
{{
options
.
name
&&
options
.
name
.
slice
(
0
,
1
).
toUpperCase
()
}}
</span>
<span
class=
"userInfo-avatar"
v-else
>
{{
options
.
name
&&
options
.
name
.
slice
(
0
,
1
).
toUpperCase
()
}}
</span>
</div>
</div>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
@
opened=
"modalOpened"
@
close=
"closeDialog"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
@
opened=
"modalOpened"
@
close=
"closeDialog"
>
<el-row>
<el-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