|
@@ -7,6 +7,7 @@ import Layout from "@/layout/index.vue";
|
|
|
|
|
|
import { RouteConfig } from "@/types/route";
|
|
|
import { ActionType } from "@/store/modules/app/_type";
|
|
|
+import { NotFound } from "./modules/constant";
|
|
|
|
|
|
const WHITE_URL_LIST: string[] = ["/login", "/forget"];
|
|
|
|
|
@@ -54,6 +55,8 @@ router.beforeEach(
|
|
|
children: webRoutes,
|
|
|
};
|
|
|
router.addRoute(AppRoute);
|
|
|
+ // 添加全局Not Found Page
|
|
|
+ router.addRoute(NotFound);
|
|
|
next({ ...to, replace: true, name: to.name! });
|
|
|
}
|
|
|
// redirectRoutes(to, next);
|