渲染页面
@await Html.PartialAsync("_HeaderJs")
部分可以加也可以不加
@RenderSection("Scripts", required: false)
@RenderBody()
@if (this.Url.ActionContext.RouteData.Values["controller"].ToString() == "Default" && this.Url.ActionContext.RouteData.Values["action"].ToString() == "Index")
{
<body class="layui-layout-body layuimini-all">
<div class="layui-layout layui-layout-admin">
@RenderBody()
</div>
<script src="~/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="~/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
@RenderSection("ScriptsFoot", required: false)
</body>
}
else
{
<body class="layui-layout-body layuimini-all">
<div class="layui-layout layui-layout-admin">
@RenderBody()
</div>
<script src="~/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="~/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
@RenderSection("ScriptsFoot", required: false)
</body>
@*<body>
<div class="layuimini-container">
<div class="layuimini-main">
@RenderBody()
</div>
</div>
<script src="~/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="~/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
@RenderSection("ScriptsFoot", required: false)
</body>*@
}