From 6c32b0941f133ec449d1a61a544c825c4c424631 Mon Sep 17 00:00:00 2001 From: wzh425 Date: Wed, 8 May 2024 11:12:47 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20issues=201183=E3=80=811166?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Application/Projects/QueryHandler.cs | 4 ++-- src/Web/Masa.Auth.Web.Sso/Pages/Account/Login/Index.razor | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Services/Masa.Auth.Service.Admin/Application/Projects/QueryHandler.cs b/src/Services/Masa.Auth.Service.Admin/Application/Projects/QueryHandler.cs index d27975bdc..ec5eff3d4 100644 --- a/src/Services/Masa.Auth.Service.Admin/Application/Projects/QueryHandler.cs +++ b/src/Services/Masa.Auth.Service.Admin/Application/Projects/QueryHandler.cs @@ -41,8 +41,8 @@ public async Task GetProjectListAsync(ProjectListQuery query) public async Task GetProjectUIAppListAsync(ProjectUIAppListQuery query) { query.Result = await GetProjectDtoListAsync(_multiEnvironmentUserContext.Environment, AppTypes.UI); - var menuPermissions = await _permissionRepository.GetListAsync(p => p.Enabled && p.Type == PermissionTypes.Menu - || p.Type == PermissionTypes.Element); + var menuPermissions = await _permissionRepository.GetListAsync(p => p.Enabled && (p.Type == PermissionTypes.Menu + || p.Type == PermissionTypes.Element)); query.Result.SelectMany(p => p.Apps).ToList().ForEach(a => { a.Navs = menuPermissions.Where(p => p.AppId == a.Identity && p.GetParentId() == Guid.Empty) diff --git a/src/Web/Masa.Auth.Web.Sso/Pages/Account/Login/Index.razor b/src/Web/Masa.Auth.Web.Sso/Pages/Account/Login/Index.razor index 7e59cb7f2..501a7b953 100644 --- a/src/Web/Masa.Auth.Web.Sso/Pages/Account/Login/Index.razor +++ b/src/Web/Masa.Auth.Web.Sso/Pages/Account/Login/Index.razor @@ -11,7 +11,7 @@ @if (_viewModel.EnableLocalLogin) { - +