Explorar el Código

1、课程问题弹框,无选项时不需要校验选中

liyanbo hace 8 meses
padre
commit
74f50aac0d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/videopage/DialogComponents.vue

+ 1 - 1
src/components/videopage/DialogComponents.vue

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