Skip to content

Commit

Permalink
Merge pull request #97 from YunYouJun/fix/vite-ssg-flat
Browse files Browse the repository at this point in the history
fix: extra .html generated when vite-ssg dirStyles flat
  • Loading branch information
JohnCampionJr authored Feb 19, 2023
2 parents ede5592 + ba8c2a8 commit 8010ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RouteLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function setupLayouts(routes) {
path: route.path,
meta: route.meta,
component: layouts[route.meta?.layout || '${options.defaultLayout}'],
children: [ {...route, path: ''} ],
children: route.path === '/' ? [route] : [{...route, path: ''}]
}
})
}
Expand Down

0 comments on commit 8010ce5

Please # to comment.