...
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
@using Shared.DTOs
|
||||
@inject HttpClient _hc
|
||||
@inject NavigationManager nav
|
||||
@inject UserAuthenticationDTO userinfo
|
||||
<PageTitle>ثبت نام</PageTitle>
|
||||
<main>
|
||||
|
||||
@@ -88,6 +89,9 @@
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
if (userinfo!=null)
|
||||
nav.NavigateTo("/");
|
||||
|
||||
editContext = new EditContext(model);
|
||||
messageStore = new(editContext);
|
||||
await base.OnInitializedAsync();
|
||||
|
Reference in New Issue
Block a user