소스 검색

获取模板接口入参调整

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,