You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
1.3 KiB

<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>未找到</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<MRow Class="d-flex flex-column justify-center" Style="height:calc(100vh - 132px);">
<MContainer Class="d-flex flex-column justify-space-between align-center">
<MImage Src="/img/status/404.png" Width="350" Height="200">
</MImage>
<MRow NoGutters Class="mt-12 text-btn neutral-lighten-2--text">对不起,这个地址什么都没有。</MRow>
<MButton Class="rounded-pill mt-6"
Dark
Tile
Color="primary"
OnClick="()=>Navigation.NavigateTo(Navigation.BaseUri)">
回到主页
</MButton>
</MContainer>
</MRow>
</LayoutView>
</NotFound>
</Router>
@code {
[Inject]
public NavigationManager Navigation { get; set; } = default!;
}