增加功能:默认首页母版页更改为_Frame
This commit is contained in:
parent
369023b0bc
commit
e37836f1b4
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue