@lcsf/acl
Version:
权限控制模块
19 lines (18 loc) • 601 B
TypeScript
import { MixMenu } from './lc-acl.type';
/**
* 提供一个方法方便查找菜单树中第一个最深层次的菜单url
* @param menus
* @returns
*/
export declare function findFirstUrl(menus: MixMenu[]): any;
/**
* 根据当前模块路径获取当前模块可以访问的第一个路由
* @param model_path
* @returns
*/
export declare function getModelFirstAuthPath(model_path: string, menu_storage_key?: string): string;
/**
* 获取当前menu第一个授权的模块path
* @param menu_storage_key
*/
export declare function getMenuFirstAuthModel(menu_storage_key?: string): string;