Showing
1 changed file
with
1 additions
and
1 deletions
@@ -676,7 +676,7 @@ layui.define(['view'], function(exports){ | @@ -676,7 +676,7 @@ layui.define(['view'], function(exports){ | ||
676 | // xwx add 首页增加CMDB入口 2021-11-21 | 676 | // xwx add 首页增加CMDB入口 2021-11-21 |
677 | , toCMDB: function () { | 677 | , toCMDB: function () { |
678 | var roles=sessionStorage.getItem('roles'); | 678 | var roles=sessionStorage.getItem('roles'); |
679 | - if (roles=='zichanyw' || roles=='zichanAdmin'){ | 679 | + if (roles.indexOf('zichanyw') != -1 || roles.indexOf('zichanAdmin') != -1){ |
680 | window.open(sessionStorage.getItem("cmdbWeb")); | 680 | window.open(sessionStorage.getItem("cmdbWeb")); |
681 | }else{ | 681 | }else{ |
682 | layer.msg('当前用户没有权限', {icon: 0, time: 3000}); | 682 | layer.msg('当前用户没有权限', {icon: 0, time: 3000}); |
-
Please register or login to post a comment