bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.77k stars 1.32k forks source link

routeTo is declared but never used #117

Closed natachaAviles closed 5 years ago

natachaAviles commented 5 years ago

Hey, i'm having trouble using the login and logout methods, i noticed that in the file routes.js the path for logout the parameter routeTo says is never used, is the same with the login route (routeTo, routeFrom is never used) im looking from where does that parameters come from it would be a great help for me.

im using my own api in this.

chrisvfritz commented 5 years ago

The intellisense you're seeing regarding routeTo/routeFrom isn't actually a problem. Your editor is just letting you know they're never used, in case you meant to use them.

Both routeTo/routeFrom come from Vue Router. Authentication in this app uses both Vue Router and Vuex quite heavily, so I recommend reading these docs to become more familiar with them and how they're used in this application.

I'll close this for now, but please don't hesitate to keep commenting or open new issues if you have follow-up questions. 🙂