docs: adjust example (#31372)

This commit is contained in:
Alex Liu 2025-03-14 22:17:01 +08:00 committed by Daniel Roe
parent 0290031738
commit 9ce2b9f5c6
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -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'
- }