Fix access code page
This commit is contained in:
parent
96b175138a
commit
a9b91fb1b6
@ -43,15 +43,7 @@ public partial class AccessCode
|
||||
|
||||
private async Task InitializeUser()
|
||||
{
|
||||
if (!AuthService.LoginRequired)
|
||||
{
|
||||
var users = await Client.GetFromJsonAsync<List<User>>("api/Users");
|
||||
if (users != null) User = users.FirstOrDefault(u => u.Baid == Baid);
|
||||
}
|
||||
else if (AuthService.IsLoggedIn)
|
||||
{
|
||||
User = await Client.GetFromJsonAsync<User>($"api/Users/{Baid}");
|
||||
}
|
||||
User = await Client.GetFromJsonAsync<User>($"api/Users/{Baid}");
|
||||
}
|
||||
|
||||
private async Task DeleteAccessCode(string accessCode)
|
||||
|
@ -12,7 +12,7 @@
|
||||
if (isLoading == true || response == null)
|
||||
{
|
||||
// Loading...
|
||||
for (uint i = 0; i < 12; i++) {
|
||||
for (uint i = 0; i < pageSize; i++) {
|
||||
<MudItem xs="12" md="6" lg="4" xl="3">
|
||||
<MudCard Outlined="true">
|
||||
<MudCardContent>
|
||||
|
Loading…
x
Reference in New Issue
Block a user