From 344c4e65874884c3df0d09d1cca9681dc8046897 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 30 Dec 2021 17:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 925e067..7e4c023 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -163,15 +163,15 @@ const user = { let userIdentity let userInfo = Vue.ls.get(USER_INFO) // userInfo.companyRole,企业角色:1--普通企业;2--会员企业 - if (userInfo.companyRole.toString() === '1') { + if (userInfo.companyRole + '' === '1') { userIdentity = '0' } else { // userInfo.roleCode,企业用户角色:1--企业联系人、--企业管理员 - if (userInfo.roleCode.toString() === '2') { + if (userInfo.roleCode + '' === '2') { userIdentity = '1' } else { // userInfo.isCouncil,是否理事会成员:1--是;0--否 - if (userInfo.isCouncil.toString() === '1') { + if (userInfo.isCouncil + '' === '1') { userIdentity = '3' } else { userIdentity = '2'