增加功能:面包屑导航条增加查找title属性值

This commit is contained in:
Argo-MacBookPro 2018-09-29 20:16:21 +08:00
parent dbde804b0e
commit 9e538b0b67
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ $(function () {
// breadcrumb // breadcrumb
var $breadNav = $('#breadNav'); var $breadNav = $('#breadNav');
var arch = $sideMenu.find('a.active').last(); var arch = $sideMenu.find('a.active').last();
if (arch.text() !== "") $breadNav.removeClass('d-none').text(arch.text()); $breadNav.removeClass('d-none').text(arch.text() || $('title').text());
$.fn.extend({ $.fn.extend({
autoScrollSidebar: function (options) { autoScrollSidebar: function (options) {

View File

@ -31,7 +31,7 @@
// breadcrumb // breadcrumb
var $breadNav = $('#breadNav'); var $breadNav = $('#breadNav');
var arch = $sideMenu.find('a.active').last(); var arch = $sideMenu.find('a.active').last();
if (arch.text() !== "") $breadNav.removeClass('d-none').text(arch.text()); $breadNav.removeClass('d-none').text(arch.text() || $('title').text());
$('.sidebar-toggle-box').on('click', function () { $('.sidebar-toggle-box').on('click', function () {
if ($(window).width() >= 768) return; if ($(window).width() >= 768) return;