2021-03-12 17:02:11 +08:00
|
|
|
<ConfigProvider>
|
|
|
|
<ConventionRouter AppAssembly="@typeof(MainLayout).Assembly">
|
|
|
|
<Found Context="routeData">
|
|
|
|
<RouteView RouteData="routeData" DefaultLayout="@typeof(MainLayout)" />
|
|
|
|
</Found>
|
|
|
|
<NotFound>
|
|
|
|
<LayoutView Layout="@typeof(MainLayout)">
|
|
|
|
@if (Result != null)
|
|
|
|
{
|
|
|
|
@Result
|
|
|
|
}
|
|
|
|
</LayoutView>
|
|
|
|
</NotFound>
|
|
|
|
</ConventionRouter>
|
|
|
|
</ConfigProvider>
|
2020-06-13 00:23:03 +08:00
|
|
|
|
|
|
|
<AntContainer />
|
2020-07-20 22:28:09 +08:00
|
|
|
|
|
|
|
@code{
|
|
|
|
|
|
|
|
RenderFragment Result;
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
{
|
|
|
|
await base.OnInitializedAsync();
|
|
|
|
await Task.Delay(2000);
|
|
|
|
|
|
|
|
Result = @<Result Status="404"/>;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|