mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
454 B
454 B
abortNavigation
abortNavigation(err?: Error | string): false
- err: Optional error to be thrown by
abortNavigation()
.
::alert{type="warning"}
abortNavigation()
is only usable inside a route middleware handler.
::
Inside a route middleware handler, abortNavigation()
will abort navigation, and throw an error if one is set as a parameter.
::ReadMore{link="/guide/features/routing"} ::