Error

Vue Error: Redirected from “/login” to “/index” via a navigation guard.

Solution

Delete node_modules and change vue-router to 3.0.7 in package.json