浏览代码

导入store

kwonghinho 7 年之前
父节点
当前提交
f810481a55
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/routes/index.js

+ 2 - 2
src/routes/index.js

@@ -18,10 +18,10 @@ import SendChatLog from './SendChatLog'
 export const createRoutes = (store) => ({
   path: '/',
   component: Layout,
-  indexRoute: Login,
+  indexRoute: Login(store),
   childRoutes: [
     counterRoute(store),
-      Home,
+      Home(store),
       UserMessage,
       ExpertView,
       FindPatientView,