We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sub-pages always use the ‘default’ layout, even if a different layout name is set in the meta.
test.vue
src/layouts/
<template> <h1>Test Layout</h1> <RouterView /> </template>
src/pages/test/index.vue
test
<template> <h1>Test Title</h1> </template> <route lang="yaml"> meta: layout: test </route>
pnpm i && pnpm dev
http://localhost:3333/test/
https://github.com/mamboer/vitesse
Just checkout the code and run it.
System: OS: macOS 14.1.2 CPU: (8) arm64 Apple M2 Memory: 97.30 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm pnpm: 8.11.0 - /Volumes/Pluto/dev/github/mamboer/vitesse/node_modules/.bin/pnpm Browsers: Chrome: 119.0.6045.199 Safari: 17.1.2
pnpm
The text was updated successfully, but these errors were encountered:
This is an issue in vite-plugin-vue-layouts: JohnCampionJr/vite-plugin-vue-layouts#120
I'm working on it; hope to have an update in the next day or two.
Sorry, something went wrong.
I have released 0.9.0, it should fix this.
Nice job 👍
No branches or pull requests
Describe the bug
Sub-pages always use the ‘default’ layout, even if a different layout name is set in the meta.
Reproduction:
test.vue
layout in thesrc/layouts/
foldersrc/pages/test/index.vue
, and specifed it's layout totest
pnpm i && pnpm dev
http://localhost:3333/test/
in the browserReproduction project
https://github.com/mamboer/vitesse
Just checkout the code and run it.
Reproduction
https://github.com/mamboer/vitesse
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: