增加功能:默认首页母版页更改为_Frame

This commit is contained in:
Argo Zhang 2019-04-18 15:37:26 +08:00
parent 369023b0bc
commit e37836f1b4
3 changed files with 102 additions and 116 deletions

View File

@ -17,7 +17,7 @@ namespace Bootstrap.Admin.Controllers
/// <returns></returns>
public IActionResult Index()
{
var model = new HeaderBarModel(User.Identity);
var model = new NavigatorBarModel(this);
var url = DictHelper.RetrieveHomeUrl(model.AppCode);
return url.Equals("~/Home/Index", System.StringComparison.OrdinalIgnoreCase) ? (IActionResult)View(model) : Redirect(url);
}

View File

@ -1,18 +1,4 @@
@{
ViewBag.Title = "首页";
Layout = "_Bootstrap";
Layout = "_Frame";
}
@section css {
<style type="text/css">
.content-body {
position: fixed;
left: 0;
bottom: 40px;
right: 0;
top: 96px;
overflow: hidden;
}
</style>
}
<div class="content-body welcome-bg">
</div>