Skip to content

Commit

Permalink
feat: allow disabling layout
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Dec 15, 2023
1 parent dfa5d27 commit 3a4357e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function setupLayouts(routes) {
route.children = deepSetupLayout(route.children, false)
}
if (top) {
if (top && route.meta?.layout !== false) {
return {
path: route.path,
component: layouts[route.meta?.layout || '${defaultLayout}'],
Expand Down

0 comments on commit 3a4357e

Please sign in to comment.