Prechádzať zdrojové kódy

主诊断一般治疗不存在添加容错(2159)

zhangxc 6 rokov pred
rodič
commit
20754637c2
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/store/async-actions/treat.js

+ 2 - 2
src/store/async-actions/treat.js

@@ -406,7 +406,7 @@ export const commonTreatAddToAdvice = () => {
             })
             dispatch({
                 type: SET_COMMONTREATMENT,
-                commontreatment: state.treat.generalTreat.content
+                commontreatment: state.treat.generalTreat&&state.treat.generalTreat.content
             })
             if(followUp) {
                 dispatch({
@@ -415,7 +415,7 @@ export const commonTreatAddToAdvice = () => {
                     hasFollowUp: true
                 })
             }
-            if(state.treat.generalTreat.content || followUp) { //如果一般治疗和回访时间存在,定位到医嘱
+            if(state.treat.generalTreat&&state.treat.generalTreat.content || followUp) { //如果一般治疗和回访时间存在,定位到医嘱
                 document.getElementById("adviceBox").scrollIntoView(true)
             }