Skip to content

Vue Router warn #1

@GoldraK

Description

@GoldraK

Hello,
I have tested the code to be able to integrate with my laravel api and it works perfectly, but when reviewing it I have seen the following warn.

imagen

If you change this if

for this

if (isGoingExceptionalRoutes) {
	next() // The user is not logged in but it's going to exceptional routes ? fine
	return
} else {
	next({ name: 'login' })
	return
} // other routes than exceptional paths => /login

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions