src/Hx.IdentityServer/Views/Error/Index.cshtml
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@model Hx.IdentityServer.Model.Error.ErrorViewModel
@{
ViewBag.Title = "Error";
Layout = "_Layout";
var error = Model.Error?.Error;
var errorDescription = Model.Error?.ErrorDescription;
var request_id = Model.Error?.RequestId;
}
@section styles{
<style type="text/css">
.row {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.col-sm-6 {
position: relative;
width: 100%;
padding-right: 15px;
padding-left: 15px;
}
@@media (min-width: 576px) {
.col-sm-6 {
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
}
</style>
}
<div class="error-page">
<div class="lead">
<h1>Error</h1>
</div>
<div class="row">
<div class="col-sm-6">
<div class="hx-alert hx-alert-danger">
Sorry, there was an error
@if (error != null)
{
<strong>
<em>
: @error
</em>
</strong>
if (errorDescription != null)
{
<div>@errorDescription</div>
}
}
</div>
@if (request_id != null)
{
<div class="request-id">Request Id: @request_id</div>
}
后面还有 3 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
