From 9e538b0b679a9377c45d952ee75c35cf89c60889 Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Sat, 29 Sep 2018 20:16:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E9=9D=A2=E5=8C=85=E5=B1=91=E5=AF=BC=E8=88=AA=E6=9D=A1=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=9F=A5=E6=89=BEtitle=E5=B1=9E=E6=80=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/wwwroot/js/common-scripts.js | 2 +- Bootstrap.Client/wwwroot/js/common-scripts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootstrap.Admin/wwwroot/js/common-scripts.js b/Bootstrap.Admin/wwwroot/js/common-scripts.js index 1e943d2e..2cb84ccf 100644 --- a/Bootstrap.Admin/wwwroot/js/common-scripts.js +++ b/Bootstrap.Admin/wwwroot/js/common-scripts.js @@ -149,7 +149,7 @@ $(function () { // breadcrumb var $breadNav = $('#breadNav'); 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({ autoScrollSidebar: function (options) { diff --git a/Bootstrap.Client/wwwroot/js/common-scripts.js b/Bootstrap.Client/wwwroot/js/common-scripts.js index d8b9d465..8fb33135 100644 --- a/Bootstrap.Client/wwwroot/js/common-scripts.js +++ b/Bootstrap.Client/wwwroot/js/common-scripts.js @@ -31,7 +31,7 @@ // breadcrumb var $breadNav = $('#breadNav'); 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 () { if ($(window).width() >= 768) return;