|
|
@ -56,6 +56,10 @@ export default {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
value: 'user',
|
|
|
|
value: 'user',
|
|
|
|
label: '用户管理'
|
|
|
|
label: '用户管理'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: 'loginout',
|
|
|
|
|
|
|
|
label: '注销登录'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -65,6 +69,11 @@ export default {
|
|
|
|
this.$store.dispatch('app/toggleSideBar')
|
|
|
|
this.$store.dispatch('app/toggleSideBar')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectChange(val) {
|
|
|
|
selectChange(val) {
|
|
|
|
|
|
|
|
if (val === 'loginout') {
|
|
|
|
|
|
|
|
this.$store.commit('user/RESET_STATE')
|
|
|
|
|
|
|
|
this.$router.push('/login')
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
this.$router.push('/' + val)
|
|
|
|
this.$router.push('/' + val)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async logout() {
|
|
|
|
async logout() {
|
|
|
|