修复管理员登录日志为空导致错误

This commit is contained in:
2021-07-20 00:20:01 +08:00
parent fc1fec7fc5
commit 80f7dc994c
2 changed files with 139 additions and 2 deletions
@@ -1,6 +1,11 @@
@model COMCMS.Core.AdminLog
@{
ViewBag.title = "查看管理日志详情";
string content = Model.Actions;
if (!string.IsNullOrEmpty(content))
{
content = content.Replace("|||", "<br />");
}
}
<div class="wrapper wrapper-content ">
@@ -53,7 +58,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">操作详细日志:</label>
<div class="col-sm-8">
<label class="control-label" style="text-align:left">@Html.Raw(Model.Actions.Replace("|||", "<br />"))</label>
<label class="control-label" style="text-align:left">@Html.Raw(content)</label>
</div>
</div>