return (
<Router>
<Switch>
<HomePage>
<Switch>
<ErrorBoundary>
<Route exact path={'/'} component={InfoShow} />
</ErrorBoundary>
</Switch>
</HomePage>
<CompanyHome>
<Switch>
<ErrorBoundary>
<Route path={ '/companyHome/companyBaseInfo'} component={CompanyBaseInfo} />
</ErrorBoundary>
</Switch>
</CompanyHome>
<Route component={NotFound} />
</Switch>
</Router>
);
有两个switch ,想要从'/'里面有个跳转到'companyHome/companyBaseInfo',但是出现了没有界面的问题
请问一下大家,路由该怎么写呀
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…