@using Models.Identity
@page "/"

@code{

    protected override async void OnInitialized()
    {
        var is_logedin = await LocalStorage.ContainKeyAsync(Statics.LoginTokenKey);
        if (!is_logedin)
            NavigationManager.NavigateTo("/login");
        base.OnInitialized();
    }

}
