diff --git a/Masa.Blazor.Pro.Client/Program.cs b/Masa.Blazor.Pro.Client/Program.cs index ce2ffef..3403126 100644 --- a/Masa.Blazor.Pro.Client/Program.cs +++ b/Masa.Blazor.Pro.Client/Program.cs @@ -2,15 +2,14 @@ var builder = WebAssemblyHostBuilder.CreateDefault(args); -builder.Services.AddMasaBlazor(options => +await builder.Services.AddMasaBlazor(options => { options.ConfigureTheme(theme => { theme.Themes.Light.Primary = "#4318FF"; theme.Themes.Light.Accent = "#4318FF"; }); -}); - // .AddI18nForWasmAsync($"{builder.HostEnvironment.BaseAddress}/i18n"); +}).AddI18nForWasmAsync($"{builder.HostEnvironment.BaseAddress}/i18n"); await builder.Services.AddGlobalForWasmAsync(builder.HostEnvironment.BaseAddress); diff --git a/Masa.Blazor.Pro/Components/App.razor b/Masa.Blazor.Pro/Components/App.razor index ccda03a..a917b37 100644 --- a/Masa.Blazor.Pro/Components/App.razor +++ b/Masa.Blazor.Pro/Components/App.razor @@ -14,11 +14,11 @@ - + - + diff --git a/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj b/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj index 659fb86..360cede 100644 --- a/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj +++ b/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj @@ -15,15 +15,6 @@ PreserveNewest - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - \ No newline at end of file diff --git a/Masa.Blazor.Pro/Program.cs b/Masa.Blazor.Pro/Program.cs index 21b0ed2..a70969f 100644 --- a/Masa.Blazor.Pro/Program.cs +++ b/Masa.Blazor.Pro/Program.cs @@ -5,7 +5,7 @@ // Add services to the container. builder.Services.AddRazorComponents() - // .AddInteractiveWebAssemblyComponents() + .AddInteractiveWebAssemblyComponents() .AddInteractiveServerComponents(); builder.Services.AddMasaBlazor(options => @@ -36,7 +36,7 @@ app.MapRazorComponents() .AddInteractiveServerRenderMode() - // .AddInteractiveWebAssemblyRenderMode() + .AddInteractiveWebAssemblyRenderMode() .AddAdditionalAssemblies(typeof(Routes).Assembly); app.Run();