MeterSphere/frontend/src/router/typings.d.ts

20 lines
787 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'vue-router';
declare module 'vue-router' {
interface RouteMeta {
roles?: string[]; // 角色数组
requiresAuth?: boolean; // 是否需要权限,默认需要
icon?: string; // 菜单icon
locale?: string; // 国际化语言单词
collapsedLocale?: string; // 收起时的国际化语言单词
hideInMenu?: boolean; // 此路由不在菜单展示
hideChildrenInMenu?: boolean; // 子路由不展示在菜单
activeMenu?: string; // 激活状态
order?: number; // 排序权重
noAffix?: boolean; // tab展示设置设置为true则不在tab列表展示激活页面的tab
isCache?: boolean; // 缓存设置true则不缓存
isTopMenu?: boolean; // 是否为顶部菜单
breadcrumbs?: BreadcrumbItem[]; // 面包屑
}
}