launchurl
This commit is contained in:
parent
5cfc595cd6
commit
51e29884cd
3 changed files with 12 additions and 2 deletions
|
@ -17,6 +17,7 @@ public class UserManager
|
|||
|
||||
private readonly IServiceProvider _serv;
|
||||
|
||||
|
||||
public async Task InitAsync()
|
||||
{
|
||||
using var scope = _serv.CreateAsyncScope();
|
||||
|
@ -24,6 +25,7 @@ public class UserManager
|
|||
if (resp.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
User = (await resp.Content.ReadFromJsonAsync<UserModel>())!;
|
||||
Console.WriteLine($"User: {User.Id}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,3 +24,11 @@
|
|||
</article>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
Console.WriteLine($"meow: {usr.IsAuthorized}");
|
||||
Console.WriteLine($"Meow: {usr.User.Id}");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "/",
|
||||
"launchUrl": "login",
|
||||
"applicationUrl": "http://localhost:5066",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
|
@ -23,7 +23,7 @@
|
|||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "/",
|
||||
"launchUrl": "login",
|
||||
"applicationUrl": "https://localhost:7203;http://localhost:5066",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
|
|
Loading…
Reference in a new issue