adminsystem/adminSystem.Ui/Components/Routes.razor

12 lines
434 B
Plaintext
Raw Normal View History

2024-05-28 15:52:02 +08:00
@using adminSystem.UI.Components.Account.Shared
<Router AppAssembly="typeof(Program).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)">
<NotAuthorized>
<RedirectToLogin />
</NotAuthorized>
</AuthorizeRouteView>
<FocusOnNavigate RouteData="routeData" Selector="h1" />
</Found>
</Router>