Home > sic-util > author_router_filter
author_router_filter() function
处理接口的路由数据,将本地的路由信息补充进去 数据层面:既处理数据问题,也解决浏览器关于menuId,resourceList等字段驼峰大小写的警告 业务层面:处理的的数据存储到localstore中,便于系统使用
Signature:
typescript
author_router_filter: (origin: MenuInformation[], local: MenuInformation[]) => ({
key: string | undefined;
menuid: number | undefined;
label: string | undefined;
resourcelist: ResourceList[] | undefined;
children: any;
} | null)[]
Parameters
Parameter | Type | Description |
---|---|---|
origin | MenuInformation[] | 接口的路由信息 |
local | MenuInformation[] | 本地的路由信息 |
({ key: string | undefined; menuid: number | undefined; label: string | undefined; resourcelist: ResourceList[] | undefined; children: any; } | null)[]
{Array} 适配到项目的路由树