测评问题修复

This commit is contained in:
jiangzhe 2024-04-28 16:45:03 +08:00
parent b02388ff98
commit 64036db122
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@
</div> </div>
<div class="subject-content"> <div class="subject-content">
<div class="subject-title">{{ currentQuestion.questionContent }}</div> <div class="subject-title">{{ currentQuestion.questionContent || '' }}</div>
<el-radio-group v-model="currentQuestion.answerId" @change="handleChange"> <el-radio-group v-model="currentQuestion.answerId" @change="handleChange">
<el-radio size="large" border :value="item.answerId" v-for="item in currentQuestion.answerList" <el-radio size="large" border :value="item.answerId" v-for="item in currentQuestion.answerList"
:key="item.answerId"> :key="item.answerId">
@ -121,7 +121,7 @@ function next() {
questionNum.value++ questionNum.value++
if (questionNum.value >= questionList.value.length) { if (questionNum.value >= questionList.value.length) {
questionNum.value = questionList.value.length questionNum.value = questionList.value.length - 1
} }
currentQuestion.value = questionList.value[questionNum.value] currentQuestion.value = questionList.value[questionNum.value]
@ -218,8 +218,8 @@ async function submit() {
.subject-content { .subject-content {
margin-left: 50px; margin-left: 50px;
margin-top: 30px; margin-top: 30px;
height: 550px; height: 450px;
max-height: 550px; max-height: 450px;
.subject-title { .subject-title {
text-align: center; text-align: center;