N
Nuxt7mo ago
8l8

how can i change default layout after set default layout in app.vue?

please help me. i want exclude default layout for some page
17 Replies
IsraelOrtuno
IsraelOrtuno7mo ago
just set layout to false
8l8
8l8OP7mo ago
i set layout:false but its not work
IsraelOrtuno
IsraelOrtuno7mo ago
can you show your app.vue and your layouts folder? https://nuxt.com/docs/guide/directory-structure/pages/#layout
8l8
8l8OP7mo ago
No description
8l8
8l8OP7mo ago
the code in app.vue
8l8
8l8OP7mo ago
No description
8l8
8l8OP7mo ago
No description
8l8
8l8OP7mo ago
the code in register.vue
IsraelOrtuno
IsraelOrtuno7mo ago
in your register.vue delete the <NuxtLayout> element, no needed
IsraelOrtuno
IsraelOrtuno7mo ago
Nuxt
layouts/ · Nuxt Directory Structure
Nuxt provides a layouts framework to extract common UI patterns into reusable layouts.
IsraelOrtuno
IsraelOrtuno7mo ago
I would suggest use the default layout for most of your usecases as a convention, so no need to even specify it
8l8
8l8OP7mo ago
can i apply default layout in app.vue for all page then exclude for some page to use other layout on them? i solved my trouble need rename layout-1.vue to default.vu a last question can i add alias header title for all page? i want that alias put at end of title page
IsraelOrtuno
IsraelOrtuno7mo ago
Nuxt
SEO and Meta · Get Started with Nuxt
Improve your Nuxt app's SEO with powerful head config, composables and components.
IsraelOrtuno
IsraelOrtuno7mo ago
Nuxt
SEO and Meta · Get Started with Nuxt
Improve your Nuxt app's SEO with powerful head config, composables and components.
8l8
8l8OP7mo ago
hi thank you sm i have an other question i need validate a form email, password, confirmPassword field how can i validate email with yu or zod? i mean i want validate email rule before fetch api to check existed email in database here is my code that using yu to validate but it using many request to database i hope can hear more suggest from you to optimize my script thank you @IsraelOrtuno
Want results from more Discord servers?
Add your server