Skip to content

Commit

Permalink
fix(): mount menu after pre-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Oct 20, 2023
1 parent c2bc094 commit 3d933d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/brick-kit/src/core/LocationContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,17 @@ export class LocationContext {
}
}

await this.mountMenu(route.menu, matched.match, mountRoutesResult);

if (route.documentId) {
mountRoutesResult.appBar.documentId = route.documentId;
}

if (isRouteConfOfRoutes(route) && Array.isArray(route.routes)) {
await this.preFetchMenu(route.context);
await this.mountMenu(route.menu, matched.match, mountRoutesResult);
await this.mountRoutes(route.routes, slotId, mountRoutesResult);
} else if (isRouteConfOfBricks(route) && Array.isArray(route.bricks)) {
await this.preFetchMenu(route);
await this.mountMenu(route.menu, matched.match, mountRoutesResult);
await this.mountBricks(
route.bricks,
matched.match,
Expand Down

0 comments on commit 3d933d3

Please sign in to comment.