fix 上一个问题
This commit is contained in:
@@ -57,8 +57,8 @@ namespace Ewide.Core.Service
|
||||
}).ToListAsync(); // .OrderByDescending(u => u.Active) // 将激活的放到第一个
|
||||
|
||||
//// 默认激活第一个应用
|
||||
//if (appList != null && appList.Count > 0 && appList[0].Active != YesOrNot.Y.ToString())
|
||||
// appList[0].Active = YesOrNot.Y.ToString();
|
||||
if (appList != null && appList.Count > 0 && !appList[0].Active)
|
||||
appList[0].Active = true;
|
||||
return appList;
|
||||
}
|
||||
|
||||
|
||||
@@ -157,11 +157,11 @@ namespace Ewide.Core.Service
|
||||
loginOutput.Apps = await _sysAppService.GetLoginApps(userId);
|
||||
|
||||
// 菜单信息
|
||||
//if (loginOutput.Apps.Count > 0)
|
||||
//{
|
||||
// var defaultActiveAppCode = loginOutput.Apps.FirstOrDefault(u => u.Active == true).Code; // loginOutput.Apps[0].Code;
|
||||
// loginOutput.Menus = await _sysMenuService.GetLoginMenusAntDesign(userId, defaultActiveAppCode);
|
||||
//}
|
||||
if (loginOutput.Apps.Count > 0)
|
||||
{
|
||||
var defaultActiveAppCode = loginOutput.Apps.FirstOrDefault(u => u.Active == true).Code; // loginOutput.Apps[0].Code;
|
||||
loginOutput.Menus = await _sysMenuService.GetLoginMenusAntDesign(userId, defaultActiveAppCode);
|
||||
}
|
||||
|
||||
// 增加登录日志
|
||||
//await new SysLogVis
|
||||
|
||||
Reference in New Issue
Block a user