ASync/Await is not working as expected in router.BeforeEach guard in vue?

前端 未结 0 1486
轮回少年
轮回少年 2020-11-29 09:54

this is my router guard :

router.beforeEach(async (to,from,next)=>{   
  await store.dispatch(\'GetPermission\'); 
  if(to.matched.some(re         


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