docs: update vue-router links (#6421)

This commit is contained in:
Nathan Chase 2022-08-08 04:27:19 -04:00 committed by GitHub
parent 9971fade76
commit 70aec38428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -322,7 +322,7 @@ Learn more about [`<NuxtLink>`](/api/components/nuxt-link) usage.
## Router options
It is possible to set default [vue-router options](https://router.vuejs.org/api/#routeroptions).
It is possible to set default [vue-router options](https://router.vuejs.org/api/interfaces/routeroptions.html).
**Note:** `history` and `routes` options will be always overridden by Nuxt.
@ -333,7 +333,7 @@ This is the recommended way to specify router options.
```js [app/router.options.ts]
import type { RouterConfig } from '@nuxt/schema'
// https://router.vuejs.org/api/#routeroptions
// https://router.vuejs.org/api/interfaces/routeroptions.html
export default <RouterConfig>{
}
```
@ -351,7 +351,7 @@ export default <RouterConfig>{
```js [nuxt.config]
export default defineNuxtConfig({
router: {
// https://router.vuejs.org/api/#routeroptions
// https://router.vuejs.org/api/interfaces/routeroptions.html
options: {}
}
})

View File

@ -8,7 +8,7 @@ export default {
*
* For more control, you can use `app/router.optionts.ts` file.
*
* @see [documentation](https://router.vuejs.org/api/#routeroptions)
* @see [documentation](https://router.vuejs.org/api/interfaces/routeroptions.html)
* @type {import('../src/types/router').RouterConfigSerializable}
*
* @version 3