fix: lint

This commit is contained in:
shuilan.cj 2022-03-14 18:13:27 +08:00 committed by ClarkXia
parent 3689971527
commit ee6cd1481e
1 changed files with 2 additions and 1 deletions

View File

@ -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;