Commit df38594c by 蒋勇

d

parent 5af5aa7b
...@@ -149,7 +149,9 @@ export default [ ...@@ -149,7 +149,9 @@ export default [
name: 'role_auth', name: 'role_auth',
meta: { meta: {
icon: 'md-clipboard', icon: 'md-clipboard',
title: '授权操作' title: '授权操作',
hideInMenu:true,
hideInBread:true
}, },
component: () => import('@/view/roleinfo/roleauth_page.vue') component: () => import('@/view/roleinfo/roleauth_page.vue')
} }
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
commit('setAvatar', (rtn.data.headUrl && rtn.data.headUrl!="")?rtn.data.headUrl:"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('setUserName', rtn.data.user.userName)
commit('setUserId', rtn.data.user.id) commit('setUserId', rtn.data.user.id)
commit('setAccess', ['super_admin', 'admin']) commit('setAccess', rtn.data.access)
commit('setHasGetInfo', true) commit('setHasGetInfo', true)
commit('setAdmin',rtn.data.user.isAdmin) commit('setAdmin',rtn.data.user.isAdmin)
commit('setSuper',rtn.data.user.isSuper) commit('setSuper',rtn.data.user.isSuper)
...@@ -122,11 +122,10 @@ export default { ...@@ -122,11 +122,10 @@ export default {
commit('setAvatar', (rtn.data.headUrl && rtn.data.headUrl!="")?rtn.data.headUrl:"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('setUserName', rtn.data.userName)
commit('setUserId', rtn.data.id) commit('setUserId', rtn.data.id)
commit('setAccess', ['super_admin', 'admin']) commit('setAccess', rtn.data.access)//设置当前登录用户的访问权限
commit('setHasGetInfo', true) commit('setHasGetInfo', true)
commit('setAdmin',rtn.data.isAdmin) commit('setAdmin',rtn.data.isAdmin)
commit('setSuper',rtn.data.isSuper) commit('setSuper',rtn.data.isSuper)
rtn.data.access= ['super_admin', 'admin']
commit('setUser',rtn.data) commit('setUser',rtn.data)
resolve(rtn.data) resolve(rtn.data)
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment