|
@@ -174,7 +174,7 @@ const handleCloseQuestionDialog = () => {
|
|
|
|
|
|
|
|
// 提交答案
|
|
// 提交答案
|
|
|
const handleSubmitAnswer = () => {
|
|
const handleSubmitAnswer = () => {
|
|
|
- if (!selectedOption.value) {
|
|
|
|
|
|
|
+ if (props.currentQuestion.ccQuestOption && props.currentQuestion.ccQuestOption.length > 0 && !selectedOption.value) {
|
|
|
ElMessage.warning('请选择一个选项')
|
|
ElMessage.warning('请选择一个选项')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|