mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
完成菜单分配JS模块化
This commit is contained in:
@@ -54,6 +54,18 @@ namespace OpenAuth.App
|
||||
return _repository.Find(null).ToList();
|
||||
}
|
||||
|
||||
public List<Module> LoadTree(int firstId, string key)
|
||||
{
|
||||
if (key == "UserElement") //todo:因为在分配菜单页面出现的树,只能收到这个值,蛋疼
|
||||
{
|
||||
return LoadForUser(firstId);
|
||||
}
|
||||
else
|
||||
{
|
||||
return LoadForRole(firstId);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 以组合的方式显示所有的模块信息
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user