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