修改BUG:前台面包屑导航条没有正确设置

This commit is contained in:
Argo-Lenovo 2016-11-19 15:16:58 +08:00
parent e0573300d2
commit 319b7c3256
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
});