소스 검색

治疗方案容错处理

zhangxc 5 년 전
부모
커밋
1a37d478fe
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/js/index.js
  2. 1 1
      src/js/indexHorizontal.js

+ 1 - 1
src/js/index.js

@@ -97,7 +97,7 @@ function getPageInfo() {
     const tipsInfo = res4&&res4.data || {}
     const {confArr, showLabsNum, showPacsNum, labsAndPacMode} = transConf(configArr)
     const pushResult = pushInfo.data || {};
-    const treatResult = treatInfo.data.treat || {}
+    const treatResult = treatInfo&&treatInfo.data&&treatInfo.data.treat || {}
     let tipsResult = []
     if(tipsInfo.data) {
       if(tipsMode == '2') {

+ 1 - 1
src/js/indexHorizontal.js

@@ -91,7 +91,7 @@ function getPageInfo() {
     const {confArr, showLabsNum, showPacsNum, labsAndPacMode} = transConf(configArr)
     const tipsInfo = res4.data || {}
     const pushResult = pushInfo.data || {};
-    const treatResult = treatInfo.data.treat || {}
+    const treatResult = treatInfo&&treatInfo.data&&treatInfo.data.treat || {}
     let tipsResult = []
     if(tipsInfo.data) {
       if(tipsMode == '2') {