src/ZKEACMS.WebHost/Views/Page/EditorTemplates/PageUrl.cshtml
(完整代码) 852B@using Microsoft.AspNetCore.Http
@model String
@{
var descriptor = ViewData.ModelMetadata.GetViewDescriptor();
var pageModel = ViewContext.ViewBag.Page as PageEntity;
string path = string.Empty;
if (pageModel != null && pageModel.Url.IsNotNullAndWhiteSpace())
{
var pathArray = pageModel.Url.Split('/').ToList();
pathArray.RemoveAt(0);
pathArray.RemoveAt(pathArray.Count - 1);
if (pathArray.Count > 0)
{
path = string.Join("/", pathArray) + "/";
}
}
}
@inject IHostOptionProvider hostOptionProvider
<div class="input-group clearfix">
<div class="input-group-addon" style="max-width:600px;overflow:hidden;text-overflow:ellipsis;">
@(hostOptionProvider.GetOrigin() + "/" + path)
</div>
@Html.TextBox("", Model, descriptor?.ToHtmlProperties())
</div>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。