You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
992 B
34 lines
992 B
import { type PermissionType } from '@/core/permission/modules/types';
|
|
|
|
interface Title18n {
|
|
zh_CN: string;
|
|
en_US: string;
|
|
}
|
|
|
|
declare module 'vue-router' {
|
|
interface RouteMeta extends Record<string | number | symbol, unknown> {
|
|
/** 标题 */
|
|
title: string | Title18n;
|
|
/** 当前路由是否需要权限验证 */
|
|
isAuth?: boolean;
|
|
/** 当前路由权限 */
|
|
perms?: PermissionType[];
|
|
/** 是否需要缓存 */
|
|
keepAlive?: boolean;
|
|
/** 当前路由namePath 祖先name集合 */
|
|
namePath?: string[];
|
|
/** 当前路由所在的完整路径 */
|
|
fullPath?: string;
|
|
/** 是否固定在标签栏 */
|
|
affix?: boolean;
|
|
/** 菜单图标 */
|
|
icon?: string;
|
|
/** 当前页面切换动画 */
|
|
transitionName?: string;
|
|
/** 不在菜单中显示 */
|
|
hideInMenu?: boolean;
|
|
/** 设置当前路由高亮的菜单项,值为route fullPath或route name,一般用于详情页 */
|
|
activeMenu?: string;
|
|
isLink?: boolean;
|
|
}
|
|
}
|
|
|