接口返回数据修改

This commit is contained in:
2022-10-22 14:00:02 +08:00
parent 730e0df403
commit b12611faee
13 changed files with 66 additions and 163 deletions

View File

@@ -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')