From e554f58fa27ba892dd529447d7bb25cbf3e0d81b Mon Sep 17 00:00:00 2001 From: Argo Window10 Date: Tue, 10 Dec 2019 22:11:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=AF=E7=94=B1=E4=BB=A5=E5=8F=8A=20Tab=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Pages/Admin/Home.razor | 13 +++++++++++++ .../Bootstrap.Admin/Shared/NotFoundLayout.razor | 2 +- src/admin/Bootstrap.Admin/wwwroot/js/ba.blazor.js | 9 ++++----- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Pages/Admin/Home.razor b/src/admin/Bootstrap.Admin/Pages/Admin/Home.razor index 0cb226c5..63c0a99e 100644 --- a/src/admin/Bootstrap.Admin/Pages/Admin/Home.razor +++ b/src/admin/Bootstrap.Admin/Pages/Admin/Home.razor @@ -6,3 +6,16 @@ @page "/Pages/Admin/Roles" @page "/Pages/Admin/Users" @page "/Pages/Admin/Settings" +@page "/Pages/Home/Index" +@page "/Pages/Admin/Messages" +@page "/Pages/Admin/Tasks" +@page "/Pages/Admin/Notifications" +@page "/Pages/Admin/Logs" +@page "/Pages/Admin/Logins" +@page "/Pages/Admin/Traces" +@page "/Pages/Admin/SQL" +@page "/Pages/Admin/Online" +@page "/Pages/Admin/Analyse" +@page "/Pages/Admin/Exceptions" +@page "/Pages/Admin/Healths" +@page "/Pages/Admin/Mobile" diff --git a/src/admin/Bootstrap.Admin/Shared/NotFoundLayout.razor b/src/admin/Bootstrap.Admin/Shared/NotFoundLayout.razor index 16ca531e..c019343d 100644 --- a/src/admin/Bootstrap.Admin/Shared/NotFoundLayout.razor +++ b/src/admin/Bootstrap.Admin/Shared/NotFoundLayout.razor @@ -4,7 +4,7 @@

@model?.Content

@model?.Detail

-

登录 或者 返回首页 或者 系统自检

+

登录 或者 返回首页 或者 系统自检

@if (@model?.Id == 403) {
diff --git a/src/admin/Bootstrap.Admin/wwwroot/js/ba.blazor.js b/src/admin/Bootstrap.Admin/wwwroot/js/ba.blazor.js index 33a41e28..4169ed2c 100644 --- a/src/admin/Bootstrap.Admin/wwwroot/js/ba.blazor.js +++ b/src/admin/Bootstrap.Admin/wwwroot/js/ba.blazor.js @@ -58,11 +58,10 @@ // 通过指定 ID 设置站点 Title var menuId = 'menus_' + id; var $curMenu = $('.sidebar .active').first(); - if ($curMenu.attr('id') !== menuId) { - // set website title - $('head title').text($menu.text()); - this.resetTab(id); - } + + // set website title + $('head title').text($curMenu.text()); + this.resetTab(id); }, removeTab: function (tabId) { // 通过当前 Tab 返回如果移除后新的 TabId