diff --git a/src/components/360View/followUpRecord/index.vue b/src/components/360View/followUpRecord/index.vue index aec2076..e7a0126 100644 --- a/src/components/360View/followUpRecord/index.vue +++ b/src/components/360View/followUpRecord/index.vue @@ -132,7 +132,7 @@ export default { } this.$http.get('/patient/view/getTimeAxisDataVisit', { params }).then(res => { this.timeAxisDataVisit = res.data.data - this.curFormType = this.timeAxisDataVisit[0].itemList[0].groupName + this.curFormType = this.timeAxisDataVisit.length && this.timeAxisDataVisit[0].itemList[0].groupName if (add) { const index = this.timeAxisDataVisit.findIndex(item => item.date === this.$moment(value.createTime).format('YYYY-MM-DD')) this.$refs.timeline.itemCurrentIndex = index || 0