diff --git a/src/blazor/admin/BootstrapAdmin.Web/App.razor b/src/blazor/admin/BootstrapAdmin.Web/App.razor index 0b03bb99..3ed07836 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/App.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/App.razor @@ -2,7 +2,6 @@ - @Title diff --git a/src/blazor/admin/BootstrapAdmin.Web/App.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/App.razor.cs deleted file mode 100644 index b451435a..00000000 --- a/src/blazor/admin/BootstrapAdmin.Web/App.razor.cs +++ /dev/null @@ -1,32 +0,0 @@ -using BootstrapAdmin.Web.Services; - -namespace BootstrapAdmin.Web; - -/// -/// -/// -public partial class App -{ - /// - /// - /// - public string? Title { get; set; } - - [Inject] - [NotNull] - private BootstrapAppContext? AppContext { get; set; } - - [Inject] - [NotNull] - private NavigationManager? NavigationManager { get; set; } - - /// - /// - /// - protected override void OnInitialized() - { - base.OnInitialized(); - - AppContext.BaseUri = NavigationManager.ToAbsoluteUri(NavigationManager.BaseUri); - } -} diff --git a/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.db b/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.db index 94b23aac..86a92879 100644 Binary files a/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.db and b/src/blazor/admin/BootstrapAdmin.Web/BootstrapAdmin.db differ diff --git a/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs index 2fffd42e..2bcc5166 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Shared/MainLayout.razor.cs @@ -88,6 +88,7 @@ namespace BootstrapAdmin.Web.Shared { base.OnInitialized(); + AppContext.BaseUri = NavigationManager.ToAbsoluteUri(NavigationManager.BaseUri); NavigationManager.LocationChanged += NavigationManager_LocationChanged; }