import { IRoute } from 'umi'; import { Authority } from '@/permission/types'; export interface Route extends Omit { title?: string; //路由名称 icon?: string; //路由icon hideInHeader?: boolean; //是否在header里面隐藏 hideInMenu?: boolean; //是否在sidebar里面隐藏 noHeader?: boolean; // 是否无Header routes?: Route[]; hideSidebar?: boolean; //是否隐藏sidebar adminOnly?: boolean; // 管理员可见 noBack?: boolean; // 无返回按钮 hide?: boolean; // 路由里不可见 authority?: Authority; routes?: Route[]; redirects?: string[]; }