路由bug
This commit is contained in:
parent
8840084ce9
commit
d66242d7de
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue