How to execute dispatch store before rendering page on Vue?

后端 未结 0 1830
孤独总比滥情好
孤独总比滥情好 2020-12-03 03:24

I need to check authorization. To do this, I make a request to the server. Further, depending on the answer, I want to manage the flag from the storage via router.beforeEach

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