mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 优化路由声明,添加路由模块导入,规范路相关文件夹
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
/** 路由描述 */
|
||||
interface RouteMeta {
|
||||
export interface CustomRouteMeta {
|
||||
/** 路由名称 */
|
||||
title?: string;
|
||||
/** 缓存页面 */
|
||||
@ -12,12 +12,15 @@ interface RouteMeta {
|
||||
isNotMenu?: boolean;
|
||||
/** 菜单和面包屑对应的图标 */
|
||||
icon?: string;
|
||||
/** 路由作为菜单时的排序 */
|
||||
/** 导入的路由模块排序,可用于菜单的排序 */
|
||||
order?: number;
|
||||
}
|
||||
|
||||
/** 路由配置 */
|
||||
export type CustomRoute = RouteRecordRaw & { meta: RouteMeta };
|
||||
export type CustomRoute = RouteRecordRaw & { meta: CustomRouteMeta };
|
||||
|
||||
/** 导入的路由模块 */
|
||||
export type ImportedRouteModules = Record<string, { default: CustomRoute; [key: string]: any }>;
|
||||
|
||||
/** 路由声明的key */
|
||||
export type RouteKey =
|
||||
|
Reference in New Issue
Block a user