From b600caa357989ea1d208142f9062e8f367ca3416 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Wed, 26 Oct 2022 09:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0admin=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/components/header.vue | 4 ++++ 1 file changed, 4 insertions(+) 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)