Former-commit-id: 26205ebf26a34b47060c3685cb4d969140e94f61 [formerly 26205ebf26a34b47060c3685cb4d969140e94f61 [formerly 26205ebf26a34b47060c3685cb4d969140e94f61 [formerly 26205ebf26a34b47060c3685cb4d969140e94f61 [formerly 659e4b42eec3fb5106a46f8c06c4b62170e4385e [formerly 33bd817d31a89ff29b25860e8e553198f426966b]]]]] Former-commit-id: e9c520cc0f970cf63f834a8a4f1de806465e054c Former-commit-id: 3ab6ec0c07d8739e484ebde242beebbf761e9a11 Former-commit-id: 44e9aaa39c1d5becbfab509fcb80b15c4e11bf18 [formerly 9bf3ab07eac16679f064a20af7b5483c36b11503] Former-commit-id: 624cbcde01906949ce2ca04c7f522fe6c078bc62 Former-commit-id: 2f0ff3c6614b44b17fba9305acd199b145f07273 Former-commit-id: 8ff08e2826218d1a3f6276f367c81f628fe38970 Former-commit-id: 2bd544a5f39a5e8c3e88082d517f33ed3f49f7f2 Former-commit-id: 45586821281ab265e08b09b1af718d30964db101
37 lines
711 B
Vue
37 lines
711 B
Vue
<template>
|
|
<el-dropdown size="small" class="d2-mr">
|
|
<span class="btn-text">你好 {{info.name}}</span>
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-item @click.native="logOff">
|
|
<d2-icon name="power-off" class="d2-mr-5"/>
|
|
注销
|
|
</el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState, mapActions } from 'vuex'
|
|
export default {
|
|
computed: {
|
|
...mapState('d2admin/user', [
|
|
'info'
|
|
])
|
|
},
|
|
methods: {
|
|
...mapActions('d2admin/account', [
|
|
'logout'
|
|
]),
|
|
/**
|
|
* @description 登出
|
|
*/
|
|
logOff () {
|
|
this.logout({
|
|
vm: this,
|
|
confirm: true
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|