mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-19 16:01:24 +00:00
docs: adjust example (#31372)
This commit is contained in:
parent
0290031738
commit
9ce2b9f5c6
@ -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.
|
||||
```diff [pages/index.vue]
|
||||
<script>
|
||||
+ <script setup>
|
||||
+ definePageMeta({
|
||||
+ layout: 'custom'
|
||||
+ })
|
||||
- <script>
|
||||
- export default {
|
||||
- layout: 'custom'
|
||||
- }
|
||||
|
Loading…
Reference in New Issue
Block a user