refactor: 格式化文档

This commit is contained in:
Argo-Tianyi 2022-01-01 20:26:08 +08:00
parent e150e33bfe
commit b417eb04c8
1 changed files with 27 additions and 28 deletions

View File

@ -1,37 +1,36 @@
using Microsoft.AspNetCore.Authorization;
namespace BootstrapAdmin.Web.Pages.Home
namespace BootstrapAdmin.Web.Pages.Home;
/// <summary>
///
/// </summary>
[Route("/")]
[Route("/Home")]
[Route("/Home/Index")]
[Authorize]
public class Index : ComponentBase
{
[Inject]
[NotNull]
private NavigationManager? Navigation { get; set; }
#if DEBUG
/// <summary>
///
/// </summary>
[Route("/")]
[Route("/Home")]
[Route("/Home/Index")]
[Authorize]
public class Index : ComponentBase
/// <param name="firstRender"></param>
protected override void OnAfterRender(bool firstRender)
{
[Inject]
[NotNull]
private NavigationManager? Navigation { get; set; }
#if DEBUG
/// <summary>
///
/// </summary>
/// <param name="firstRender"></param>
protected override void OnAfterRender(bool firstRender)
{
Navigation.NavigateTo($"/Admin/Index", true);
}
#else
/// <summary>
///
/// </summary>
protected override void OnInitialized()
{
Navigation.NavigateTo($"/Admin/Index", true);
}
#endif
Navigation.NavigateTo($"/Admin/Index", true);
}
#else
/// <summary>
///
/// </summary>
protected override void OnInitialized()
{
Navigation.NavigateTo($"/Admin/Index");
}
#endif
}