Browse Source

引入各个模块

kwonghinho 7 years ago
parent
commit
41f73914ab
1 changed files with 18 additions and 2 deletions
  1. 18 2
      src/routes/index.js

+ 18 - 2
src/routes/index.js

@@ -1,8 +1,16 @@
 // We only need to import the modules necessary for initial render
 import Layout from '../components/Layout'
-import Home from './Home'
+import Login from './Login'
 import NotFound from './NotFound'
 import counterRoute from './Counter'
+import Home from './Home'
+import UserMessage from './UserMessage'
+import ExpertView from './Expert'
+import FindPatientView from './FindPatient'
+import MyOrderView from './MyOrder'
+import ChatExpertView from './ChatExpert'
+import ChatBaseView from './ChatBase'
+import SendChatLog from './SendChatLog'
 
 /*  Note: Instead of using JSX, we recommend using react-router
     PlainRoute objects to build route definitions.   */
@@ -10,9 +18,17 @@ import counterRoute from './Counter'
 export const createRoutes = (store) => ({
   path: '/',
   component: Layout,
-  indexRoute: Home,
+  indexRoute: Login,
   childRoutes: [
     counterRoute(store),
+      Home,
+      UserMessage,
+      ExpertView,
+      FindPatientView,
+      MyOrderView,
+      ChatExpertView,
+      ChatBaseView,
+      SendChatLog,
     NotFound,
   ],
 })