Replies: 1 comment
-
Are you using this plugin: vite-plugin-vue-layouts? Otherwise vite-plugin-pages does does not have a layout option. You can, however, use the meta value to manipulate your component. For example: <route lang="yaml">
name: Home
meta:
layout: false
</route> And then when route loads the parent component (where is ) you can do something like this: const shouldShowLayout = computed(() => {
const { meta } = useRoute();
return meta.layout !== false;
}); I might be able to help more if more code was provided. |
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
-
Description
I would like to disable layout for some certain routes, like the landing page.
Is that possible?
Suggested solution
Alternative
No response
Additional context
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions