refactor: 移除 NotAuthorized 代码
This commit is contained in:
parent
b6f0e08257
commit
d9a80affcf
|
@ -2,13 +2,6 @@
|
||||||
<Router AppAssembly="@typeof(MainLayout).Assembly" PreferExactMatches="@true">
|
<Router AppAssembly="@typeof(MainLayout).Assembly" PreferExactMatches="@true">
|
||||||
<Found Context="routeData">
|
<Found Context="routeData">
|
||||||
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
|
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
|
||||||
<NotAuthorized>
|
|
||||||
<RedirectToLogin />
|
|
||||||
</NotAuthorized>
|
|
||||||
<Authorizing>
|
|
||||||
<h1>Authentication in progress</h1>
|
|
||||||
<p>You can only see this content while authentication is in progress.</p>
|
|
||||||
</Authorizing>
|
|
||||||
</AuthorizeRouteView>
|
</AuthorizeRouteView>
|
||||||
</Found>
|
</Found>
|
||||||
<NotFound>
|
<NotFound>
|
||||||
|
|
Loading…
Reference in New Issue