Skip to content

Commit

Permalink
feat(projects): update elegant-route
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Aug 27, 2024
1 parent ce564ce commit d4a655f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router/elegant/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const generatedRoutes: GeneratedRoute[] = [
{
name: 'login',
path: '/login',
component: 'layout.undefined',
component: 'layout.blank',
redirect: 'pwd-login',
layout: 'blank',
meta: {
Expand Down
2 changes: 1 addition & 1 deletion src/router/elegant/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function transformElegantRouteToReactRoute(
reactRoute.lazy = async () => {
const data= (await views[viewName]()).Component as FunctionComponent
return {
element: data(props) ,
Component: ()=>data(props) ,
ErrorBoundary: null
}
}
Expand Down

0 comments on commit d4a655f

Please sign in to comment.