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