Skip to content

v2.4.0

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 08 Apr 06:02
· 945 commits to dev since this release

New

  • The next function in navigation guards can now accept an Error. This will be considered an explicit error, whereas calling next(false) is considered a "silent abort".

  • New router instance method: router.onError(errorCallback). The registered callback will be triggered under the following conditions:

    • The error is thrown synchronously inside a route guard function;

    • The error is caught and asynchronously handled by calling next(err) inside a route guard function;

    • An error occurred when trying to resolve an async component that is required to render a route.

  • router.onReady now accepts an additional second argument, which is an error callback which will be called when the initial route resolution fails.

Fixed

  • #1182 fix relative query with array fields (@xujiongbo via #1291)
  • #1286 fix this in beforeRouteUpdate if a new navigation is triggered in the same component's created hook.
  • #1290 fix target="_blank" for router-link with child nodes (@RezaHaidari via #1290)