v10.10.2024.0701 使用IJsonHost改进Json序列化
大石头 编写于 2024-07-01 08:36:34 大石头 提交于 2024-07-01 08:48:33
X
@{
    var menu = ManageProvider.Menu.Current;
}
<li>
    <i class="ace-icon fa fa-home home-icon"></i>
    @if (menu != null)
    {
        foreach (IMenu item in menu.AllParents)
        {
            if (item.ID != 0)
            {
                <a href="@(item.Url!=null? Url.Content(item.Url):"#")">@item.DisplayName</a>

            }
        }
    }
</li>

<li>
    <a href="@Url.Action("Index")">@(menu != null ? menu.DisplayName : ViewBag.Title)</a>
</li>