diff --git a/src/router/index.js b/src/router/index.js index 3c9b9e32..95a5e5d4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -37,10 +37,9 @@ router.beforeEach(async (to, from, next) => { document.title = to.meta.title ? `${to.meta.title} - ${config.APP_NAME}` : `${config.APP_NAME}` let token = tool.cookie.get("TOKEN"); - if (to.path === "/login") { //删除路由(替换当前layout路由) - router.addRoute(routes[0]) + // router.addRoute(routes[0]) //删除路由(404) routes_404_r() isGetRouter = false;