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,26 +1,7 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
/** 路由描述 */
|
||||
export interface CustomRouteMeta {
|
||||
/** 路由名称 */
|
||||
title?: string;
|
||||
/** 缓存页面 */
|
||||
keepAlive?: boolean;
|
||||
/** 页面100%视高 */
|
||||
fullPage?: boolean;
|
||||
/** 不作为菜单 */
|
||||
isNotMenu?: boolean;
|
||||
/** 菜单和面包屑对应的图标 */
|
||||
icon?: string;
|
||||
/** 导入的路由模块排序,可用于菜单的排序 */
|
||||
order?: number;
|
||||
}
|
||||
|
||||
/** 路由配置 */
|
||||
export type CustomRoute = RouteRecordRaw & { meta: CustomRouteMeta };
|
||||
|
||||
/** 导入的路由模块 */
|
||||
export type ImportedRouteModules = Record<string, { default: CustomRoute; [key: string]: any }>;
|
||||
export type ImportedRouteModules = Record<string, { default: RouteRecordRaw; [key: string]: any }>;
|
||||
|
||||
/** 路由声明的key */
|
||||
export type RouteKey =
|
||||
|
Reference in New Issue
Block a user