Explorar el Código

id获取有误

luolei hace 4 años
padre
commit
a87e1d2d63
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/containers/PushDataContainer.js

+ 2 - 2
src/containers/PushDataContainer.js

@@ -4,7 +4,7 @@ import PushData from '@components/PushData';
 import { TOGGLE_PUSH_DATA } from '@store/types/homePage.js';
 function mapStateToProps(state){
     // console.log('state',state.print.mrInfo)
-    const {showPushData } = state.homePage;
+    const {showPushData,curHos } = state.homePage;
     const {mrInfo } = state.print;
 
     return {
@@ -13,7 +13,7 @@ function mapStateToProps(state){
         planCode:mrInfo.mode,
         windowHeight:state.homePage.windowHeight,
         windowWidth:state.homePage.windowWidth,
-        hospitalId:state.historyTemplates.HospitalInfo.id
+        hospitalId:curHos.hosId
     }
 }