xiatian 2 vuotta sitten
vanhempi
commit
18abb2dde1

+ 2 - 2
src/modules/questions/views/EditPaper.vue

@@ -2223,7 +2223,7 @@ export default {
     },
     //新增选项
     addQuesOption() {
-      if (this.quesModel.quesOptions.length >= 20) {
+      if (this.quesModel.quesOptions.length > 20) {
         this.$notify({
           message: "选项最多20个",
           type: "error",
@@ -2273,7 +2273,7 @@ export default {
       }
 
       if (this.quesModel.quesOptions) {
-        if (this.quesModel.quesOptions.length >= 20) {
+        if (this.quesModel.quesOptions.length > 20) {
           this.$notify({
             message: "选项最多20个",
             type: "error",

+ 2 - 2
src/modules/questions/views/EditPaperPendingTrial.vue

@@ -2305,7 +2305,7 @@ export default {
     },
     //新增选项
     addQuesOption() {
-      if (this.quesModel.quesOptions.length >= 20) {
+      if (this.quesModel.quesOptions.length > 20) {
         this.$notify({
           message: "选项最多20个",
           type: "error",
@@ -2354,7 +2354,7 @@ export default {
         }
       }
       if (this.quesModel.quesOptions) {
-        if (this.quesModel.quesOptions.length >= 20) {
+        if (this.quesModel.quesOptions.length > 20) {
           this.$notify({
             message: "选项最多20个",
             type: "error",

+ 2 - 2
src/modules/questions/views/EditSelectQuestion.vue

@@ -425,7 +425,7 @@ export default {
     submitForm(formName) {
       this.$refs[formName].validate((valid) => {
         if (valid) {
-          if (this.quesModel.quesOptions.length >= 20) {
+          if (this.quesModel.quesOptions.length > 20) {
             this.$notify({
               message: "选项最多20个",
               type: "error",
@@ -540,7 +540,7 @@ export default {
     },
     //新增选项
     addQuesOption() {
-      if (this.quesModel.quesOptions.length >= 20) {
+      if (this.quesModel.quesOptions.length > 20) {
         this.$notify({
           message: "选项最多20个",
           type: "error",