assigonmentDto
This commit is contained in:
@@ -21,7 +21,7 @@ else
|
||||
<MudPaper Class="d-flex flex-wrap flex-grow-0 gap-4" Height="100%" Width="100%">
|
||||
@foreach (var item in examDtos)
|
||||
{
|
||||
<ExamPreview examDto="item" Width="256px" Height="256px"> </ExamPreview>
|
||||
<ExamPreview AssignmentDto="item" Width="256px" Height="256px"> </ExamPreview>
|
||||
}
|
||||
</MudPaper>
|
||||
|
||||
@@ -35,7 +35,7 @@ else
|
||||
[CascadingParameter]
|
||||
private Task<AuthenticationState> authenticationStateTask { get; set; }
|
||||
|
||||
private List<ExamDto> examDtos = new List<ExamDto>();
|
||||
private List<AssignmentDto> examDtos = new List<AssignmentDto>();
|
||||
|
||||
private bool isloding = true;
|
||||
|
||||
@@ -50,7 +50,7 @@ else
|
||||
isloding = true;
|
||||
Snackbar.Add("正在加载", Severity.Info);
|
||||
var result = await ExamService.GetAllExam(authenticationStateTask.Result.User.Identity.Name);
|
||||
examDtos = result.Result as List<ExamDto> ?? new List<ExamDto>();
|
||||
examDtos = result.Result as List<AssignmentDto> ?? new List<AssignmentDto>();
|
||||
isloding = false;
|
||||
Snackbar.Add("加载成功", Severity.Info);
|
||||
StateHasChanged();
|
||||
|
Reference in New Issue
Block a user