添加admin权限

This commit is contained in:
a0049873 2022-10-26 09:19:01 +08:00
parent 5fea910701
commit b600caa357
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,9 @@
const navList = ref(navListManagement.navList)
const backFlag = ref(false)
getUserInfo().then((res) => {
if(res.data.data.superAdmin =='1'){
backFlag.value = true
} else {
res.data.data.roleIdList.map((val) => {
getRole(val).then((role) => {
if (role.data.data.name === '后台管理员') {
@ -144,6 +147,7 @@
}
})
})
}
})
console.log('navList------------>', navList)