docs(getting-started): fix typo in views (#7687)

This commit is contained in:
Lov`u`e 2022-09-21 01:57:34 +08:00 committed by GitHub
parent 6309d223bb
commit 523d61711e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ You will learn more about pages in the [Routing section](/getting-started/routin
![Layouts are wrapper around pages](/img/getting-started/views/layouts.svg)
Layouts are wrappers around pages that contain a common User Interface for several pages, such as a header and footer display. Layouts are Vue files using `<slot />` components to display the **page** content. The `layout/default.vue` file will be used by default. Custom layouts can be set as part of your page metadata.
Layouts are wrappers around pages that contain a common User Interface for several pages, such as a header and footer display. Layouts are Vue files using `<slot />` components to display the **page** content. The `layouts/default.vue` file will be used by default. Custom layouts can be set as part of your page metadata.
::alert
If you only have a single layout in your application, we recommend using app.vue with the [`<NuxtPage />` component](/api/components/nuxt-page) instead.