Cambalab / vue-admin

An open source frontend Framework for building admin applications running in the browser on top of REST, using ES6 and Vue.js
GNU General Public License v3.0
132 stars 24 forks source link

As an authenticated user when I navigate to /login I should be redirected to /home #181

Open sgobotta opened 4 years ago

sgobotta commented 4 years ago

Is your feature request related to a problem? Please describe. There's currently a bug where when an authenticated user visits /login, the authLayout component renders as a result of the /login route being bound by the Admin component in the created() lifecycle method, triggering a missing va prop error.

Describe the solution you'd like Investigate if the va prop should be set during the routes binding or we keep it as a responsibility of the Unauthenticated component to render the provided authLayout with the on the run created va prop. Despite the choice selected, an authenticated user should not be able to visit the /login route. A redirection must be set in the route hooks module