src/router/index.js
@@ -35,9 +35,11 @@ console.log(homeRouterName) next() } else if (!token) { next({ name: LOGIN_PAGE_ROUTE_NAME // 跳转到登录页 }) // next({ // name: LOGIN_PAGE_ROUTE_NAME // 跳转到登录页 // }) console.log(LOGIN_PAGE_ROUTE_NAME) next() } else { next() }