【v3.8.3】优化顶部导航风格菜单的样式,支持外部链接打开及菜单重定向

This commit is contained in:
JEECG
2025-09-14 11:59:09 +08:00
parent e825e0f912
commit 44c1079f87
8 changed files with 280 additions and 17 deletions

View File

@ -98,6 +98,7 @@ export function transformRouteToMenu(routeModList: AppRouteModule[], routerMappi
hideMenu,
alwaysShow:node.alwaysShow||false,
path: node.path,
originComponent: node.originComponent,
...(node.redirect ? { redirect: node.redirect } : {}),
};
},

View File

@ -134,6 +134,7 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul
routeList.forEach((route) => {
const component = route.component as string;
if (component) {
route.originComponent = component;
if (component.toUpperCase() === 'LAYOUT') {
route.component = LayoutMap.get(component.toUpperCase());
} else {

View File

@ -9,6 +9,7 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
name: string;
meta: RouteMeta;
component?: Component | string;
originComponent?: string;
components?: Component;
children?: AppRouteRecordRaw[];
props?: Recordable;