瀏覽代碼

获取模板接口入参调整

liucf 6 年之前
父節點
當前提交
fc85cf50db
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. 4 6
      src/store/async-actions/homePage.js

+ 4 - 6
src/store/async-actions/homePage.js

@@ -26,12 +26,10 @@ function modulesParseJson(data){
   return {json,saveTextJson,moduleName};
 }
 
-// export const getInitModules= (dispatch,getStore)=>{
-//   const state = getStore();
-//   const {message} = state.patInfo;
-export const getInitModules= (chronicId)=>{
-  const {patInfo} = store.getState();
-  const {message} = patInfo;
+export const getInitModules= (dispatch,getStore)=>{
+  const state = getStore();
+  const {message} = state.patInfo;
+  const chronicId = '';//诊断为慢病复诊时储存慢病信息到store
   const param = {
     age:message.patientAge,
     sexType:message.sex,