修改BUG:前台面包屑导航条没有正确设置
This commit is contained in:
parent
e0573300d2
commit
319b7c3256
|
@ -12,6 +12,7 @@
|
|||
$(window).on('resize', iframeResposive);
|
||||
|
||||
var $subMenu = $('#submenu');
|
||||
var $breadNav = $('#breadNav');
|
||||
$subMenu.on('click', 'a', function (event) {
|
||||
var $this = $(this);
|
||||
var act = $this.attr("data-act");
|
||||
|
@ -28,5 +29,8 @@
|
|||
function setActive(ele) {
|
||||
ele.addClass('active');
|
||||
ele.parents("ul").first().find('p').addClass('active');
|
||||
var breadcrumb = ele.text();
|
||||
if (breadcrumb === "") $breadNav.hide();
|
||||
else $breadNav.text(breadcrumb);
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue