...
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<div class="row">
|
||||
@foreach (var item in items)
|
||||
{
|
||||
<ItemBlog Item="item" />
|
||||
<ItemBloginHome Item="item" />
|
||||
}
|
||||
|
||||
</div>
|
||||
@@ -29,7 +29,8 @@
|
||||
List<BlogDto> items = new List<BlogDto>();
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
items = await _hc.GetFromJsonAsync<List<BlogDto>>("Base/LastBlog/3");
|
||||
var request = await _hc.GetFromJsonAsync<PagingDto<BlogDto>>("Base/LastBlog?PageIndex=1&PageSize=3");
|
||||
items = request.list;
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user