mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-22 11:36:37 +08:00
47 lines
977 B
TypeScript
47 lines
977 B
TypeScript
declare namespace PageRoute {
|
|
/**
|
|
* the root route key
|
|
* @translate 根路由
|
|
*/
|
|
type RootRouteKey = 'root';
|
|
|
|
/**
|
|
* the not found route, which catch the invalid route path
|
|
* @translate 未找到路由(捕获无效路径的路由)
|
|
*/
|
|
type NotFoundRouteKey = 'not-found';
|
|
|
|
/**
|
|
* the route key
|
|
* @translate 页面路由
|
|
*/
|
|
type RouteKey =
|
|
| '403'
|
|
| '404'
|
|
| '500'
|
|
| 'constant-page'
|
|
| 'login'
|
|
| 'not-found'
|
|
| 'multi-menu'
|
|
| 'multi-menu_first'
|
|
| 'multi-menu_first_second-new'
|
|
| 'multi-menu_first_second-new_third'
|
|
| 'multi-menu_first_second';
|
|
|
|
/**
|
|
* last degree route key, which has the page file
|
|
* @translate 最后一级路由(该级路有对应的页面文件)
|
|
*/
|
|
type LastDegreeRouteKey = Extract<
|
|
RouteKey,
|
|
| '403'
|
|
| '404'
|
|
| '500'
|
|
| 'constant-page'
|
|
| 'login'
|
|
| 'not-found'
|
|
| 'multi-menu_first_second-new_third'
|
|
| 'multi-menu_first_second'
|
|
>;
|
|
}
|