[Update] 修改js,添加3级菜单active属性

pull/1910/head
BaiJiangJie 6 years ago
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…
Cancel
Save