Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(router): the issue of blank page navigation during repair of non-LAYOUT first-level route component #3764

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/router/helper/routeHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul
warn('找不到菜单对应的name, 请检查数据!' + JSON.stringify(route));
}
route.name = `${route.name}Parent`;
// 重定向到当前路由,以防空白页面
route.redirect = route.path;
route.path = '';
const meta = route.meta || {};
meta.single = true;
Expand Down
Loading