ant-design-blazor/ant-design-charts-blazor

图标怎么用,静态写死的可以用的, 但是 http请求后图标不能刷新

icetech233 opened this issue · 1 comments

protected override async Task OnInitializedAsync()
{

    StockCountResp stockCountResp = await bizSrv.GetStockCountAsync();
    List<StockRawItem> _skulist = stockCountResp.Data.Raw;
    var groupList = _skulist.GroupBy(x => x.WarehouseName).ToList();

    foreach (var _g in groupList)
    {
        PieItem pieItem = new PieItem(_g.Key, _g.Count());
        data1.Add(pieItem);
    }
    Console.WriteLine(JsonSerializer.Serialize(data1));
    data1 = data1.ToList();
    await base.OnInitializedAsync();
}

额 , 不用了,原来是 @ref