fix(#I1067G): 修复三级以上菜单无法显示问题

#Comment
comment #I1067G
使用客户端脚本设置 active 节点以及父节点 临时解决 寻找更合适的菜单

#Issue
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I1067G
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I100XI
This commit is contained in:
Argo Zhang (Win) 2019-08-05 23:07:18 +08:00
parent 3a211a1048
commit e39fcbdce6
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 8 additions and 0 deletions

View File

@ -131,6 +131,14 @@
$(function () {
var $sideMenu = $(".sidebar");
// 临时使用脚本解决多层菜单收缩问题
// Issue https://gitee.com/LongbowEnterprise/dashboard/issues?id=I1067G
var $activeLink = $sideMenu.find('a.nav-link.active');
while ($activeLink.length > 0) {
var $li = $activeLink.parent('li').addClass('active');
$activeLink = $li.parent().prev().addClass('active');
}
$sideMenu.dcAccordion({
autoExpand: true,
saveState: false