现在想把articesList设置为默认路由,点击AppSider里的文章标签去articlesList路由,点击ArticlesList里的文章进入articleDetail路由
App.js
<Layout className="app-container"> <AppSider /> <AppContent /></Layout>
AppContent
class AppContent extends React.Component {
render() { return (
<Content className="app-content bg-fff">
<Switch>
<Route path="/articleDetail" component={ArticleDetail} />
<Route path='/articlesList/:tag' component={ArticlesList} />
</Switch>
</Content>
)
}
}
神不在的星期二
慕后森
天涯尽头无女友
随时随地看视频慕课网APP