meteor-vuetify icon indicating copy to clipboard operation
meteor-vuetify copied to clipboard

how to check `user` of Vuex in `outer.beforeEach((to, from, next)`?

Open thearabbit opened this issue 7 years ago • 2 comments

I tried

router.beforeEach((to, from, next) => {
  // ....
  if(store.state.user){
  ........
  }

But have problem when refresh page, It get null (but User loginned)

thearabbit avatar Aug 30 '18 00:08 thearabbit

Sorry @thearabbit , I did not get the notification for this issue.

Did you figure it out yet?

ackzell avatar Sep 14 '18 05:09 ackzell

Could you example to check user login/logout in router.beforeEach

thearabbit avatar Sep 14 '18 10:09 thearabbit