error page

This commit is contained in:
zuiidea
2016-10-16 23:05:18 +08:00
parent 0255f197f4
commit 23b32b332e
18 changed files with 30 additions and 641 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import React from 'react'
import { Router, Route , IndexRedirect , hashHistory} from 'dva/router'
import App from './components/layout/main'
import NotFound from './routes/NotFound'
import Error from './routes/error'
import Dashboard from './routes/dashboard'
import Users from './routes/users'
@@ -12,7 +12,7 @@ export default function ({ history }) {
<IndexRedirect to="/dashboard" />
<Route path="dashboard" component={Dashboard}/>
<Route path="/users" component={ Users } />
<Route path="*" component={ NotFound } />
<Route path="*" component={ Error } />
</Route>
</Router>
)