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