Browse Source

获取模板接口入参调整

liucf 6 năm trước cách đây
mục cha
commit
fc85cf50db
1 tập tin đã thay đổi với 4 bổ sung6 xóa
  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,