...
|
...
|
@@ -676,7 +676,7 @@ layui.define(['view'], function(exports){ |
|
|
// xwx add 首页增加CMDB入口 2021-11-21
|
|
|
, toCMDB: function () {
|
|
|
var roles=sessionStorage.getItem('roles');
|
|
|
if (roles=='zichanyw' || roles=='zichanAdmin'){
|
|
|
if (roles.indexOf('zichanyw') != -1 || roles.indexOf('zichanAdmin') != -1){
|
|
|
window.open(sessionStorage.getItem("cmdbWeb"));
|
|
|
}else{
|
|
|
layer.msg('当前用户没有权限', {icon: 0, time: 3000});
|
...
|
...
|
|