refactor(projects): 优化路由声明,添加路由模块导入,规范路相关文件夹

This commit is contained in:
Soybean
2021-11-21 18:44:18 +08:00
parent 2fdb5f563f
commit f199794da0
25 changed files with 444 additions and 200 deletions

View File

@@ -1,9 +1,8 @@
import type { RouteRecordRaw } from 'vue-router';
import ROUTE_HOME from './routeHome';
import customRoutes from '../modules';
import constantRoutes from './constant';
import constantRoutes from './constant-routes';
/** 所有路由 */
export const routes: RouteRecordRaw[] = [...customRoutes, ...constantRoutes];
export { ROUTE_HOME, customRoutes };
export { ROUTE_HOME } from './route-home';