mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-20 16:25:55 +00:00
docs: adjust example (#31372)
This commit is contained in:
parent
bbacb5496d
commit
1f23874281
@ -44,10 +44,11 @@ You will also need to change how you define the layout used by a page using the
|
|||||||
```
|
```
|
||||||
2. Use [`definePageMeta`](/docs/api/utils/define-page-meta) to select the layout used by your page.
|
2. Use [`definePageMeta`](/docs/api/utils/define-page-meta) to select the layout used by your page.
|
||||||
```diff [pages/index.vue]
|
```diff [pages/index.vue]
|
||||||
<script>
|
+ <script setup>
|
||||||
+ definePageMeta({
|
+ definePageMeta({
|
||||||
+ layout: 'custom'
|
+ layout: 'custom'
|
||||||
+ })
|
+ })
|
||||||
|
- <script>
|
||||||
- export default {
|
- export default {
|
||||||
- layout: 'custom'
|
- layout: 'custom'
|
||||||
- }
|
- }
|
||||||
|
Loading…
Reference in New Issue
Block a user