last
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
@using Front.CUSComponent
|
||||
@using Shared.DTOs.Serch
|
||||
@inject HttpClientController hc;
|
||||
@inject Fixedvalues fv;
|
||||
<PageTitle>کالا</PageTitle>
|
||||
<Modal @ref="modal" />
|
||||
|
||||
@@ -125,11 +126,9 @@
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
var rsp = await hc.Get("COD/GetUnits");
|
||||
if (rsp.IsSuccessStatusCode)
|
||||
{
|
||||
Unitrequest = await rsp.Content.ReadFromJsonAsync<List<IdName<int>>>();
|
||||
}
|
||||
|
||||
Unitrequest =await fv.GetUnits();
|
||||
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
protected override async Task OnParametersSetAsync()
|
||||
|
Reference in New Issue
Block a user