From e17260088748ace4fb9af85ab776a723021f7a00 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Tue, 16 Aug 2022 11:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BC=81=E4=B8=9A=E7=AE=A1=E7=90=86=E5=91=98=E7=9A=84?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 09f4cb9..73011d9 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -227,7 +227,7 @@ const user = { userIdentity = '0' } else { // userInfo.roleCode,企业用户角色:1--企业联系人、2--企业管理员(会员企业) 3、企业管理员 - if (userInfo.roleCode + '' === '2') { + if (userInfo.roleCode + '' === '2' || userInfo.roleCode + '' === '3') { userIdentity = '1' } else { // userInfo.isCouncil,是否理事会成员:1--是;0--否 @@ -245,6 +245,7 @@ const user = { }else { allMenuData = routerData } + /**判断用户角色-end*/ switch (userIdentity) { // 不是标协会员,则不显示标协会员的全部菜单