From 7adb7d82daf4765557438ff13d6266f54f8f8cf9 Mon Sep 17 00:00:00 2001 From: xjccc <546534045@qq.com> Date: Thu, 18 Apr 2024 12:49:14 +0800 Subject: [PATCH] docs: correct definePageMeta scrollToTop docs link (#26829) --- docs/2.guide/2.directory-structure/1.pages.md | 2 +- docs/3.api/3.utils/define-page-meta.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/2.guide/2.directory-structure/1.pages.md b/docs/2.guide/2.directory-structure/1.pages.md index ce1821b83b..1379d884da 100644 --- a/docs/2.guide/2.directory-structure/1.pages.md +++ b/docs/2.guide/2.directory-structure/1.pages.md @@ -6,7 +6,7 @@ navigation.icon: i-ph-folder-duotone --- ::note -To reduce your application's bundle size, this directory is **optional**, meaning that [`vue-router`](https://router.vuejs.org) won't be included if you only use [`app.vue`](/docs/guide/directory-structure/app). To force the pages system, set `pages: true` in `nuxt.config` or have a [`app/router.options.ts`](/docs/guide/directory-structure/pages#router-options). +To reduce your application's bundle size, this directory is **optional**, meaning that [`vue-router`](https://router.vuejs.org) won't be included if you only use [`app.vue`](/docs/guide/directory-structure/app). To force the pages system, set `pages: true` in `nuxt.config` or have a [`app/router.options.ts`](/docs/guide/going-further/custom-routing#using-approuteroptions). :: ## Usage diff --git a/docs/3.api/3.utils/define-page-meta.md b/docs/3.api/3.utils/define-page-meta.md index c70da355a3..5bf32546d8 100644 --- a/docs/3.api/3.utils/define-page-meta.md +++ b/docs/3.api/3.utils/define-page-meta.md @@ -129,7 +129,7 @@ interface PageMeta { - **Type**: `boolean | (to: RouteLocationNormalized, from: RouteLocationNormalized) => boolean` - Tell Nuxt to scroll to the top before rendering the page or not. If you want to overwrite the default scroll behavior of Nuxt, you can do so in `~/app/router.options.ts` (see [docs](/docs/guide/directory-structure/pages/#router-options)) for more info. + Tell Nuxt to scroll to the top before rendering the page or not. If you want to overwrite the default scroll behavior of Nuxt, you can do so in `~/app/router.options.ts` (see [custom routing](/docs/guide/going-further/custom-routing#using-approuteroptions)) for more info. **`[key: string]`**