diff --git a/src/components/occDisease/OccDiseaseHistory.vue b/src/components/occDisease/OccDiseaseHistory.vue index 37a6c83..d09fe56 100644 --- a/src/components/occDisease/OccDiseaseHistory.vue +++ b/src/components/occDisease/OccDiseaseHistory.vue @@ -206,7 +206,12 @@ export default { this.poisonList = deepCopy(this.dict.poisonList) this.poison = this.madeSelectGroup(this.poisonList) - this.choosedPoison = this.dataTransOpts.tableM.patient_occupational_history[index]['poison'].split(",") + if(this.dataTransOpts.tableM.patient_occupational_history[index]['poison']){ + this.choosedPoison = this.dataTransOpts.tableM.patient_occupational_history[index]['poison'].split(",") + }else{ + this.choosedPoison = [] + } + this.dialogPoison = true },