xiatian hace 2 años
padre
commit
433df47d20
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      src/modules/questions/views/EditPaper.vue

+ 7 - 0
src/modules/questions/views/EditPaper.vue

@@ -2224,6 +2224,13 @@ export default {
     },
     //新增选项
     addQuesOption() {
+      if (this.quesModel.quesOptions.length == 20) {
+        this.$notify({
+          message: "选项最多20个",
+          type: "error",
+        });
+        return;
+      }
       this.quesModel.quesOptions.push({
         number: "",
         optionBody: "",