权限判断修改

This commit is contained in:
zhaoxiao
2021-12-30 17:16:01 +08:00
parent bbb9b242ab
commit 344c4e6587
+3 -3
View File
@@ -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'