zhengyiming
4 天以前 4db7cd38062f2736f8ac234ef32a05caff26df33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { RouteLocationNormalized, RouteRecordRaw } from 'vue-router';
 
export type MyRouteMeta = {
  title?: string;
  rank?: number;
  icon?: string;
  needAuth?: boolean;
  keepAlive?: boolean;
  refreshRedirect?: string;
  dynamicLevel?: string;
  moduleId?: string;
  showLink?: boolean;
};
 
export interface ToRouteType extends RouteLocationNormalized {
  meta: MyRouteMeta;
  children?: ToRouteType[];
  redirect: string;
  // component?: any
}
 
export type Route = RouteRecordRaw & {
  meta?: MyRouteMeta;
  children?: Route[];
};