This commit is contained in:
caishi 2022-04-18 10:14:45 +08:00
commit 794cf1f283
1 changed files with 8 additions and 7 deletions

View File

@ -395,6 +395,14 @@ class App extends Component {
}
}>
</Route>
<Route
path={"/"}
render={
(props) => {
return (<Projects {...this.props} {...props} {...this.state} />)
}
}>
</Route>
{/* 判断为用户/组织,并进入对应页面 */}
{
@ -414,13 +422,6 @@ class App extends Component {
</Route> : pathType === '404' ? <Route component={Shixunnopage} />:
""
}
<Route exact path="/"
render={
(props) => (
<Projects {...props} {...this.props} {...this.state}/>
)
}
/>
{/* 个人主页 */}
<Route path="/:username"