mirror of https://github.com/jumpserver/jumpserver
[Update] 修改js,添加3级菜单active属性
parent
29b87c40fe
commit
a70fcf057b
|
@ -145,7 +145,14 @@ function activeNav() {
|
|||
var resource = url_array[2];
|
||||
if (app === ''){
|
||||
$('#index').addClass('active');
|
||||
} else {
|
||||
}
|
||||
else if (app === 'xpack') {
|
||||
var item = url_array[3];
|
||||
$("#" + app).addClass('active');
|
||||
$('#' + app + ' #' + resource).addClass('active');
|
||||
$('#' + app + ' #' + resource + ' #' + item + ' a').css('color', '#ffffff');
|
||||
}
|
||||
else {
|
||||
$("#" + app).addClass('active');
|
||||
$('#' + app + ' #' + resource).addClass('active');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue