feat: 移除内部导航当前页面标识

This commit is contained in:
Argo Zhang 2019-08-16 12:01:28 +08:00
parent bf3906df03
commit 5bb9cc25b5
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 5 additions and 12 deletions

View File

@ -40,17 +40,10 @@
@await Html.PartialAsync("Navigator")
<section id="main-content" class="main-content">
<div class="main-header">
<div class="row">
<div class="col-sm-6">
<span class="text-dark"></span>
</div>
<div class="col-sm-6">
<ol class="breadcrumb justify-content-sm-end">
<li class="breadcrumb-item"><a href="@Url.Content("~/Admin/Index")"><i class="fa fa-home"></i>首页</a></li>
<li class="breadcrumb-item d-none"></li>
</ol>
</div>
</div>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="@Url.Content("~/Admin/Index")"><i class="fa fa-home"></i>首页</a></li>
<li class="breadcrumb-item d-none"></li>
</ol>
</div>
@RenderBody()
</section>

View File

@ -146,7 +146,7 @@ $(function () {
});
// breadcrumb
var $breadNav = $('#breadNav, .main-header .breadcrumb-item:last, .main-header .text-dark');
var $breadNav = $('#breadNav, .main-header .breadcrumb-item:last');
var arch = $sideMenu.find('a.active').last();
$breadNav.removeClass('d-none').text(arch.text() || $('title').text());