Commit fd2ca2e70dedf968c64a5620e89db1cf8faa4a39

Authored by xp.Huang
2 parents b077bcc6 865701c1

fix: 路由加载不存在的页面异常

@@ -82,7 +82,7 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul @@ -82,7 +82,7 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul
82 route.meta = meta; 82 route.meta = meta;
83 } 83 }
84 } 84 }
85 - if (!route.path.startsWith('/') && route.meta.isLink) { 85 + if (!route.path?.startsWith('/') && route.meta.isLink) {
86 route.path = `${OUTSIDE_LINK_PREFIX}${route.path}`; 86 route.path = `${OUTSIDE_LINK_PREFIX}${route.path}`;
87 } 87 }
88 route.children && asyncImportRoute(route.children); 88 route.children && asyncImportRoute(route.children);