Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
a34edef6
Commit
a34edef6
authored
Apr 29, 2020
by
RuoYi
Browse files
vuex用户名取值修正
parent
aa23ef1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/src/store/modules/user.js
View file @
a34edef6
...
@@ -58,7 +58,7 @@ const user = {
...
@@ -58,7 +58,7 @@ const user = {
}
else
{
}
else
{
commit
(
'
SET_ROLES
'
,
[
'
ROLE_DEFAULT
'
])
commit
(
'
SET_ROLES
'
,
[
'
ROLE_DEFAULT
'
])
}
}
commit
(
'
SET_NAME
'
,
user
.
user
n
ame
)
commit
(
'
SET_NAME
'
,
user
.
user
N
ame
)
commit
(
'
SET_AVATAR
'
,
avatar
)
commit
(
'
SET_AVATAR
'
,
avatar
)
resolve
(
res
)
resolve
(
res
)
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
...
...
Write
Preview
Supports
Markdown
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