How to make vue naviagation guard work after refresh

后端 未结 0 503
忘掉有多难
忘掉有多难 2020-12-02 00:57
  if(to.matched.some(record =>to.meta.requiresAuth)){

    if(store.getters.isAuthenticated == true)
    next()

    else next({name: "Login"}) 

  }
 e         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题