派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-14 e13e2e4af65c6e32cc6a8597ade8b4102ef3b4ec
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()
  }