diff --git a/src/views/Answer/questions/components/AnswerViewer.vue b/src/views/Answer/questions/components/AnswerViewer.vue index e277de4a..ea40ac5f 100644 --- a/src/views/Answer/questions/components/AnswerViewer.vue +++ b/src/views/Answer/questions/components/AnswerViewer.vue @@ -207,7 +207,7 @@ export default defineComponent({ this.scene = this.config.scene_information; // 解决缓存问题,答卷时加载场景信息 - if(!this.scene) { + if(!this.scene && this.question.question_index) { var res = await BrowsingRecordApi.getSurveysScene({ sn: this.$route.query.sn, question_index: this.question.question_index diff --git a/src/views/Answer/questions/components/AnswerViewerMatrix.vue b/src/views/Answer/questions/components/AnswerViewerMatrix.vue index a074d54f..98ce67a3 100644 --- a/src/views/Answer/questions/components/AnswerViewerMatrix.vue +++ b/src/views/Answer/questions/components/AnswerViewerMatrix.vue @@ -180,7 +180,7 @@ export default defineComponent({ this.scene = this.config.scene_information; // 解决缓存问题,答卷时加载场景信息 - if(!this.scene) { + if(!this.scene && this.question.question_index) { var res = await BrowsingRecordApi.getSurveysScene({ sn: this.$route.query.sn, question_index: this.question.question_index