路由bug

This commit is contained in:
曹前明 2022-08-05 09:23:41 +08:00
parent 8840084ce9
commit d66242d7de
1 changed files with 1 additions and 2 deletions

View File

@ -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;