@model TightWiki.Models.ViewModels.Admin.MenuItemsViewModel @using TightWiki.Library @using TightWiki.Models @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

站点菜单



@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} 新增

@using (Html.BeginForm(null, null, FormMethod.Post, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) { @Html.AntiForgeryToken() @if (Model.Items.Count > 0) { @foreach (var item in Model.Items) { }
名称 链接 序列
@item.Name @item.Link @item.Ordinal
} else {
暂无数据
} }
新增