mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 14:20:21 +08:00
refactor(projects): 路由文件夹拆分模块,代码重构
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { getCacheRoutes, transformRouteToMenu } from './helpers';
|
||||
import { customRoutes, routes } from './routes';
|
||||
|
||||
export { router, setupRouter } from './setup';
|
||||
export { RouteNameMap, ROUTE_HOME, customRoutes } from './routes';
|
||||
export { menus } from './menus';
|
||||
export { cacheRoutes } from './cache';
|
||||
export { ROUTE_HOME, customRoutes, routes } from './routes';
|
||||
export { RouteNameMap } from './helpers';
|
||||
|
||||
export const cacheRoutes = getCacheRoutes(routes);
|
||||
export const menus = transformRouteToMenu(customRoutes);
|
||||
|
||||
Reference in New Issue
Block a user