소스 검색

id获取有误

luolei 4 년 전
부모
커밋
a87e1d2d63
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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';
 import { TOGGLE_PUSH_DATA } from '@store/types/homePage.js';
 function mapStateToProps(state){
 function mapStateToProps(state){
     // console.log('state',state.print.mrInfo)
     // console.log('state',state.print.mrInfo)
-    const {showPushData } = state.homePage;
+    const {showPushData,curHos } = state.homePage;
     const {mrInfo } = state.print;
     const {mrInfo } = state.print;
 
 
     return {
     return {
@@ -13,7 +13,7 @@ function mapStateToProps(state){
         planCode:mrInfo.mode,
         planCode:mrInfo.mode,
         windowHeight:state.homePage.windowHeight,
         windowHeight:state.homePage.windowHeight,
         windowWidth:state.homePage.windowWidth,
         windowWidth:state.homePage.windowWidth,
-        hospitalId:state.historyTemplates.HospitalInfo.id
+        hospitalId:curHos.hosId
     }
     }
 }
 }