Skip to content

Commit

Permalink
Merge pull request #1128 from V4Fire/fix-router-helpers
Browse files Browse the repository at this point in the history
fix: add the getter to compiled routes
  • Loading branch information
Dimeliora authored Feb 13, 2024
2 parents cd68556 + 9ba474f commit b11de24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/router/modules/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ export function compileStaticRoutes(routes: StaticRoutes, opts: CompileRoutesOpt
return this.meta.default;
},

get default(): boolean {
return this.meta.default;
},

meta: {
name,
external: isExternal.test(pattern),
Expand Down Expand Up @@ -415,6 +419,10 @@ export function compileStaticRoutes(routes: StaticRoutes, opts: CompileRoutesOpt
return this.meta.default;
},

get default(): boolean {
return this.meta.default;
},

meta: {
...route,

Expand Down

0 comments on commit b11de24

Please sign in to comment.