mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-28 03:04:48 +00:00
20 lines
622 B
JavaScript
20 lines
622 B
JavaScript
import React from 'react'
|
|
import { Router, Route , IndexRedirect , hashHistory} from 'dva/router'
|
|
import App from './components/layout/main'
|
|
import NotFound from './routes/NotFound'
|
|
import Dashboard from './routes/dashboard'
|
|
import Users from './routes/users'
|
|
|
|
export default function ({ history }) {
|
|
return (
|
|
<Router history={ history }>
|
|
<Route path="/" component={ App } >
|
|
<IndexRedirect to="/dashboard" />
|
|
<Route path="dashboard" component={Dashboard}/>
|
|
<Route path="/users" component={ Users } />
|
|
<Route path="*" component={ NotFound } />
|
|
</Route>
|
|
</Router>
|
|
)
|
|
}
|