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
![No description](https://cdn.answeroverflow.com/1240238361776623727/SharedScreenshot.jpg)
the code in
app.vue
![No description](https://cdn.answeroverflow.com/1240238554643169320/SharedScreenshot.jpg)
![No description](https://cdn.answeroverflow.com/1240238741109477426/SharedScreenshot.jpg)
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.