refactor: 精简代码
This commit is contained in:
parent
2107b70d94
commit
1a896cf994
|
@ -245,10 +245,8 @@ class DictService : IDict
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public string? GetHomeUrlByAppId(string appId)
|
public string? GetHomeUrlByAppId(string appId)
|
||||||
{
|
{
|
||||||
string? url = null;
|
|
||||||
var dicts = GetAll();
|
var dicts = GetAll();
|
||||||
url = dicts.FirstOrDefault(d => d.Category == "应用首页" && d.Name.Equals(appId, StringComparison.OrdinalIgnoreCase) && d.Define == EnumDictDefine.System)?.Code;
|
return dicts.FirstOrDefault(d => d.Category == "应用首页" && d.Name.Equals(appId, StringComparison.OrdinalIgnoreCase) && d.Define == EnumDictDefine.System)?.Code;
|
||||||
return url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool GetAppSiderbar()
|
public bool GetAppSiderbar()
|
||||||
|
|
Loading…
Reference in New Issue