mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-11 23:25:33 +08:00
fix(router): the issue of blank page navigation during repair of non-LAYOUT first-level route component (#3764)
This commit is contained in:
@@ -84,6 +84,8 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul
|
|||||||
warn('找不到菜单对应的name, 请检查数据!' + JSON.stringify(route));
|
warn('找不到菜单对应的name, 请检查数据!' + JSON.stringify(route));
|
||||||
}
|
}
|
||||||
route.name = `${route.name}Parent`;
|
route.name = `${route.name}Parent`;
|
||||||
|
// 重定向到当前路由,以防空白页面
|
||||||
|
route.redirect = route.path;
|
||||||
route.path = '';
|
route.path = '';
|
||||||
const meta = route.meta || {};
|
const meta = route.meta || {};
|
||||||
meta.single = true;
|
meta.single = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user