Override default layout for a single page #2169
Unanswered
beard7
asked this question in
Help (Vue)
Replies: 1 comment
-
Oops... I was defining the laout is a nested component, rather than the page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the example in the docs to specify a default layout for all the pages of my app and it's working fine. However, there are a couple of pages that I'd like to use an alternative layout.
The docs state that: "This will automatically set the page layout to Layout if a layout has not already been set for that page." But whatever I try, I can't get a page to specify a different layout -- the default layout I've specified in the createIneApp
resolve
method is always applied:page.default.layout = page.default.layout || Layout;
I'm using
<script setup>
and specifying the layout usingdefineOptions
, but the resolve method isn't picking it up.Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions