Browse Source
Clear breadcrumb items while disposing
pull/21853/head
enisn
1 year ago
No known key found for this signature in database
GPG Key ID: A052619F04155D1C
1 changed files with
7 additions and
1 deletions
-
framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageHeader.razor.cs
|
|
|
@ -4,10 +4,11 @@ using System.Threading.Tasks; |
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.PageToolbars; |
|
|
|
using Volo.Abp.BlazoriseUI; |
|
|
|
using System.Linq; |
|
|
|
using System; |
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Components.Web.Theming.Layout; |
|
|
|
|
|
|
|
public partial class PageHeader : ComponentBase |
|
|
|
public partial class PageHeader : ComponentBase, IDisposable |
|
|
|
{ |
|
|
|
protected List<RenderFragment> ToolbarItemRenders { get; set; } |
|
|
|
|
|
|
|
@ -49,6 +50,11 @@ public partial class PageHeader : ComponentBase |
|
|
|
ToolbarItemRenders = new List<RenderFragment>(); |
|
|
|
} |
|
|
|
|
|
|
|
public void Dispose() |
|
|
|
{ |
|
|
|
PageLayout.BreadcrumbItems.Clear(); |
|
|
|
} |
|
|
|
|
|
|
|
protected async override Task OnParametersSetAsync() |
|
|
|
{ |
|
|
|
await base.OnParametersSetAsync(); |
|
|
|
|