diff --git a/src/RouteLayout.ts b/src/RouteLayout.ts index df55c32..5df251d 100644 --- a/src/RouteLayout.ts +++ b/src/RouteLayout.ts @@ -9,7 +9,7 @@ export function setupLayouts(routes) { return { path: route.path, component: layouts[route.meta?.layout || '${options.defaultLayout}'], - children: route.path === '/' ? [route] : [{...route, path: ''}]} + children: route.path === '/' ? [route] : [{...route, path: ''}] } }) }