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,18 +40,11 @@
@await Html.PartialAsync("Navigator") @await Html.PartialAsync("Navigator")
<section id="main-content" class="main-content"> <section id="main-content" class="main-content">
<div class="main-header"> <div class="main-header">
<div class="row"> <ol class="breadcrumb">
<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"><a href="@Url.Content("~/Admin/Index")"><i class="fa fa-home"></i>首页</a></li>
<li class="breadcrumb-item d-none"></li> <li class="breadcrumb-item d-none"></li>
</ol> </ol>
</div> </div>
</div>
</div>
@RenderBody() @RenderBody()
</section> </section>
@section modal { @section modal {

View File

@ -146,7 +146,7 @@ $(function () {
}); });
// breadcrumb // 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(); var arch = $sideMenu.find('a.active').last();
$breadNav.removeClass('d-none').text(arch.text() || $('title').text()); $breadNav.removeClass('d-none').text(arch.text() || $('title').text());