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
just set layout to
false
i set
layout:false
but its not workcan you show your app.vue and your layouts folder?
https://nuxt.com/docs/guide/directory-structure/pages/#layout
the code in
app.vue
the code in
register.vue
in your register.vue delete the <NuxtLayout> element, no needed
and enable layouts in your app.vue like this:
https://nuxt.com/docs/guide/directory-structure/layouts#enable-layouts
Nuxt
layouts/ · Nuxt Directory Structure
Nuxt provides a layouts framework to extract common UI patterns into reusable layouts.
I would suggest use the
default
layout for most of your usecases
as a convention, so no need to even specify itcan 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 pageNuxt
SEO and Meta · Get Started with Nuxt
Improve your Nuxt app's SEO with powerful head config, composables and components.
Nuxt
SEO and Meta · Get Started with Nuxt
Improve your Nuxt app's SEO with powerful head config, composables and components.
also https://nuxtseo.com/
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