Ver Fonte

bug fix

zhangjie há 2 anos atrás
pai
commit
2b2a89ac2c

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

@@ -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",

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

@@ -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",

+ 1 - 1
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",