mirror of https://github.com/alibaba/ice.git
fix: lint
This commit is contained in:
parent
3689971527
commit
ee6cd1481e
|
|
@ -26,7 +26,8 @@ const AppRouter: React.ComponentType<AppRouterProps> = (props) => {
|
|||
}
|
||||
|
||||
if (routes.length === 1 && !routes[0].children) {
|
||||
return routes[0].component;
|
||||
const Page = routes[0].component;
|
||||
return <Page />;
|
||||
}
|
||||
|
||||
const Router = appConfig.router.type === 'hash' ? HashRouter : BrowserRouter;
|
||||
|
|
|
|||
Loading…
Reference in New Issue