diff --git a/src/views/Home/components/MineTask/Index.vue b/src/views/Home/components/MineTask/Index.vue index 585e906..a494f87 100644 --- a/src/views/Home/components/MineTask/Index.vue +++ b/src/views/Home/components/MineTask/Index.vue @@ -19,7 +19,7 @@ watch( (value) => { setTimeout(() => { // 获取高度 - swiper.value.$el.style.height = questionComat.value[value].$el.scrollHeight + 30 + 'px'; + swiper.value.$el.style.height = questionComat.value[value]?.$el.scrollHeight + 30 + 'px'; swiper.value.resize(); }, 500); } @@ -27,7 +27,7 @@ watch( function slideChange() { setTimeout(() => { // 获取高度 - swiper.value.$el.style.height = questionComat.value[active.value].$el.scrollHeight + 30 + 'px'; + swiper.value.$el.style.height = questionComat.value[active.value]?.$el.scrollHeight + 30 + 'px'; swiper.value.resize(); }, 500); } diff --git a/src/views/Survey/views/Analysis/components/LogicInfo/Index.vue b/src/views/Survey/views/Analysis/components/LogicInfo/Index.vue index a550e15..8e75a9d 100644 --- a/src/views/Survey/views/Analysis/components/LogicInfo/Index.vue +++ b/src/views/Survey/views/Analysis/components/LogicInfo/Index.vue @@ -20,7 +20,7 @@ const tabs = computed(() => [ title: '逻辑配额', props: [ { prop: 'question_title', label: '题号', width: 80 }, - { prop: 'logic_text', label: '选项', width: 90 }, + { prop: 'text', label: '选项', width: 90 }, { prop: 'sample_number', label: '样本量', width: 90 }, { prop: 'percent', label: '进度', width: 90 } ],