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') {