接口返回数据修改
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<section class="content" style="margin-bottom: 0">
|
||||
<div class="userInfo">
|
||||
<div class="fxcol">
|
||||
<p class="p1">{{$store.getters.userInfo !== '' ? JSON.parse($store.getters.userInfo).nick_name : ''}}</p>
|
||||
<p class="p1">{{$store.getters.userInfo !== '' ? JSON.parse($store.getters.userInfo).nickName : ''}}</p>
|
||||
<p class="p2">欢迎进入永裕手持系统!</p>
|
||||
</div>
|
||||
<div class="exit" @click="Quit">
|
||||
@@ -70,11 +70,7 @@ export default {
|
||||
async _authority () {
|
||||
let accountId = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).account_id : ''
|
||||
let res = await authority(accountId)
|
||||
if (res.code === '1') {
|
||||
this.menuList = [...res.result.sonTree]
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.menuList = [...res.result.sonTree]
|
||||
},
|
||||
Quit () {
|
||||
this.$store.dispatch('setSignOut')
|
||||
|
||||
Reference in New Issue
Block a user