1
This commit is contained in:
parent
f638f50b15
commit
9de4b8d6f9
@ -4,6 +4,7 @@ import { Router, Route, Switch } from 'dva/router'
|
||||
import MainLayout from './layout/Main'
|
||||
import Login from './routes/Login'
|
||||
import Home from './routes/Home'
|
||||
import GroupHome from './routes/GroupHome'
|
||||
import Main from './routes/Main'
|
||||
import Backend from './routes/Backend'
|
||||
import HomeMobileNew from './routes/HomeMobileNew'
|
||||
@ -11,7 +12,7 @@ import { $consts } from './plugins'
|
||||
import zhCN from 'antd/lib/locale-provider/zh_CN'
|
||||
import 'moment/src/locale/zh-cn'
|
||||
|
||||
function RouterConfig ({ history }) {
|
||||
function RouterConfig({ history }) {
|
||||
return (
|
||||
<Router history={history}>
|
||||
<ConfigProvider locale={zhCN}>
|
||||
@ -19,6 +20,7 @@ function RouterConfig ({ history }) {
|
||||
<Switch>
|
||||
<Route path={$consts['ROUTE/LOGIN']} component={Login} />
|
||||
<Route path={$consts['ROUTE/HOME']} component={Home} />
|
||||
<Route path={$consts['ROUTE/GROUPHOME']} component={GroupHome} />
|
||||
<Route path={$consts['ROUTE/MAIN']} component={Main} />
|
||||
<Route path={$consts['ROUTE/BACKEND']} component={Backend} />
|
||||
{/* <Route path={$consts['ROUTE/HomeMobileNew']} component={HomeMobileNew} /> */}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user