feat: add lightweight admin workspace
This commit is contained in:
@@ -4,6 +4,7 @@ import { mergeRouteModules, traverseTreeValues } from '@vben/utils';
|
||||
|
||||
import { coreRoutes, fallbackNotFoundRoute } from './core';
|
||||
import aiPlatformRoutes from './modules/ai-platform';
|
||||
import dashboardRoutes from './modules/dashboard';
|
||||
|
||||
// 有需要可以自行打开注释,并创建文件夹
|
||||
// const externalRouteFiles = import.meta.glob('./external/**/*.ts', { eager: true });
|
||||
@@ -12,6 +13,7 @@ import aiPlatformRoutes from './modules/ai-platform';
|
||||
/** 动态路由 */
|
||||
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules({
|
||||
'./modules/ai-platform.ts': { default: aiPlatformRoutes },
|
||||
'./modules/dashboard.ts': { default: dashboardRoutes },
|
||||
});
|
||||
|
||||
/** 外部路由列表,访问这些页面可以不需要Layout,可能用于内嵌在别的系统(不会显示在菜单中) */
|
||||
|
||||
Reference in New Issue
Block a user