refactor: 精简代码

This commit is contained in:
Argo-Tianyi 2022-01-25 17:03:04 +08:00
parent 2107b70d94
commit 1a896cf994
1 changed files with 1 additions and 3 deletions

View File

@ -245,10 +245,8 @@ class DictService : IDict
/// <returns></returns>
public string? GetHomeUrlByAppId(string appId)
{
string? url = null;
var dicts = GetAll();
url = dicts.FirstOrDefault(d => d.Category == "应用首页" && d.Name.Equals(appId, StringComparison.OrdinalIgnoreCase) && d.Define == EnumDictDefine.System)?.Code;
return url;
return dicts.FirstOrDefault(d => d.Category == "应用首页" && d.Name.Equals(appId, StringComparison.OrdinalIgnoreCase) && d.Define == EnumDictDefine.System)?.Code;
}
public bool GetAppSiderbar()