mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: update vue-router links (#6421)
This commit is contained in:
parent
9971fade76
commit
70aec38428
@ -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: {}
|
||||
}
|
||||
})
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user