22 lines
416 B
TypeScript
22 lines
416 B
TypeScript
import "vue-router";
|
|
|
|
declare module "vue-router" {
|
|
/**
|
|
* 项目路由元信息扩展
|
|
*/
|
|
interface RouteMeta {
|
|
title?: string;
|
|
type?: string;
|
|
icon?: string;
|
|
hidden?: boolean;
|
|
alwaysShow?: boolean;
|
|
affix?: boolean;
|
|
keepAlive?: boolean;
|
|
breadcrumb?: boolean;
|
|
activeMenu?: string;
|
|
params?: Record<string, unknown>;
|
|
externalUrl?: string;
|
|
roles?: string[];
|
|
}
|
|
}
|