Update MyBlazorApp/App.razor

This commit is contained in:
2025-05-21 13:01:22 +00:00
parent 408f9562da
commit 5ceed19578

View File

@@ -1,9 +1,13 @@
<Router AppAssembly="@typeof(Program).Assembly"> <CascadingAuthenticationState>
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData"> <Found Context="routeData">
<RouteView RouteData="@routeData" /> <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found> </Found>
<NotFound> <NotFound>
<h1>Page not found</h1> <LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound> </NotFound>
</Router> </Router>
</CascadingAuthenticationState>