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