Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
5e4869ca
Commit
5e4869ca
authored
Apr 27, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
1e91559b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
iview-admin/src/components/tables/tables.vue
+2
-1
iview-admin/src/store/module/user.js
+2
-2
No files found.
iview-admin/src/components/tables/tables.vue
View file @
5e4869ca
...
...
@@ -252,7 +252,8 @@ export default {
"Button"
,
{
props
:
{
type
:
btninfo
.
type
type
:
btninfo
.
type
,
disabled
:
params
.
row
.
isSystem
&&
btninfo
.
key
==
"delete"
?
true
:
false
},
on
:
{
click
:
()
=>
{
...
...
iview-admin/src/store/module/user.js
View file @
5e4869ca
...
...
@@ -85,7 +85,7 @@ export default {
console
.
log
(
rtn
)
if
(
rtn
.
status
==
0
){
commit
(
'setToken'
,
rtn
.
data
.
token
)
commit
(
'setAvatar'
,
"https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png"
)
commit
(
'setAvatar'
,
(
rtn
.
data
.
headUrl
&&
rtn
.
data
.
headUrl
!=
""
)?
rtn
.
data
.
headUrl
:
"https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png"
)
commit
(
'setUserName'
,
rtn
.
data
.
user
.
userName
)
commit
(
'setUserId'
,
rtn
.
data
.
user
.
id
)
commit
(
'setAccess'
,
[
'super_admin'
,
'admin'
])
...
...
@@ -106,7 +106,7 @@ export default {
getUserInfo
(
state
.
token
).
then
(
res
=>
{
const
rtn
=
res
.
data
if
(
rtn
.
status
==
0
){
commit
(
'setAvatar'
,
"https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png"
)
commit
(
'setAvatar'
,
(
rtn
.
data
.
headUrl
&&
rtn
.
data
.
headUrl
!=
""
)?
rtn
.
data
.
headUrl
:
"https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png"
)
commit
(
'setUserName'
,
rtn
.
data
.
userName
)
commit
(
'setUserId'
,
rtn
.
data
.
id
)
commit
(
'setAccess'
,
[
'super_admin'
,
'admin'
])
...
...
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