export default class RouteConfig extends Component {
render () {
return (
<HashRouter>
<Switch>
<Route path="/profile" exact component= {profile}/>
<Route path="/login" component= {login}/>
<Route path="/info" component= {info}/>
<Route path="/msite" component= {msite}/>
<Route path="/setuser" component= {setUser}/>
<Route path="/shop/:id" component= {shop}/>
<Route path="/food/:geohash/:id/:title" component= {food}/>
<Route path="/technology" component= {technology}/>
<Redirect exact from='/' to='/profile'/> //Redirect 重定向要放在Switch的最後一句
</Switch>
</HashRouter>
)
}
}