How can I redirect to login page with protected route?

前端 未结 0 1638
青春惊慌失措
青春惊慌失措 2020-12-13 02:03

I am trying to make a protected route. When there is no token in the Localstorage, it should be redirected back to the login page. For this, I created an array called dashbo

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