|
|
|
@ -16,6 +16,7 @@ namespace CompanyName.ProjectName.Blazor.Layout.AntDesignTheme |
|
|
|
public static async Task Main(string[] args) |
|
|
|
{ |
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args); |
|
|
|
|
|
|
|
builder.RootComponents.Add<App>("#app"); |
|
|
|
|
|
|
|
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); |
|
|
|
|