Browse Source
Merge pull request #17284 from abpframework/auto-merge/rel-7-3/2106
Merge branch dev with rel-7.3
pull/17298/head
maliming
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Menus/PageChangedHandler.cs
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
@ -31,6 +32,11 @@ public class PageChangedHandler : |
|
|
|
.Where(x => x.PageId == eventData.Entity.Id) |
|
|
|
.ToArray(); |
|
|
|
|
|
|
|
if (affectedMenuItems.IsNullOrEmpty()) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
foreach (var menuItem in affectedMenuItems) |
|
|
|
{ |
|
|
|
MenuManager.SetPageUrl(menuItem, eventData.Entity); |
|
|
|
|