|
@@ -5,6 +5,7 @@ import routesOne from "./routes/routes-file-one";
|
|
import routesTwo from "./routes/routes-file-two";
|
|
import routesTwo from "./routes/routes-file-two";
|
|
import routesThree from "./routes/routes-file-three";
|
|
import routesThree from "./routes/routes-file-three";
|
|
import routesFour from "./routes/routes-file-four";
|
|
import routesFour from "./routes/routes-file-four";
|
|
|
|
+import routesFive from "./routes/routes-file-five";
|
|
const routesPush = (arr, routes) => {
|
|
const routesPush = (arr, routes) => {
|
|
if (!Array.isArray(arr)) return "请传入数组格式路由表";
|
|
if (!Array.isArray(arr)) return "请传入数组格式路由表";
|
|
for (let i = 0; i < arr.length; i++) {
|
|
for (let i = 0; i < arr.length; i++) {
|
|
@@ -52,7 +53,7 @@ export const asyncRoutes: RouterTy = [
|
|
|
|
|
|
// 插入路由
|
|
// 插入路由
|
|
routesPush(
|
|
routesPush(
|
|
- [...routesOne, ...routesTwo, ...routesThree, ...routesFour],
|
|
|
|
|
|
+ [...routesOne, ...routesTwo, ...routesThree, ...routesFour, ...routesFive],
|
|
asyncRoutes
|
|
asyncRoutes
|
|
);
|
|
);
|
|
|
|
|