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
|
## 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.
|
**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]
|
```js [app/router.options.ts]
|
||||||
import type { RouterConfig } from '@nuxt/schema'
|
import type { RouterConfig } from '@nuxt/schema'
|
||||||
|
|
||||||
// https://router.vuejs.org/api/#routeroptions
|
// https://router.vuejs.org/api/interfaces/routeroptions.html
|
||||||
export default <RouterConfig>{
|
export default <RouterConfig>{
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -351,7 +351,7 @@ export default <RouterConfig>{
|
|||||||
```js [nuxt.config]
|
```js [nuxt.config]
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
router: {
|
router: {
|
||||||
// https://router.vuejs.org/api/#routeroptions
|
// https://router.vuejs.org/api/interfaces/routeroptions.html
|
||||||
options: {}
|
options: {}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -8,7 +8,7 @@ export default {
|
|||||||
*
|
*
|
||||||
* For more control, you can use `app/router.optionts.ts` file.
|
* 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}
|
* @type {import('../src/types/router').RouterConfigSerializable}
|
||||||
*
|
*
|
||||||
* @version 3
|
* @version 3
|
||||||
|
Loading…
Reference in New Issue
Block a user