diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 8bc1e908..fe336352 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -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)