xiatian 4 năm trước cách đây
mục cha
commit
8add2d8918
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      src/modules/questions/views/Question.vue

+ 4 - 4
src/modules/questions/views/Question.vue

@@ -474,7 +474,7 @@ export default {
       this.searchQues();
     },
     searchQues() {
-      var pageNo = this.currentPage;
+      var pageNo = this.currentPage | 1;
       this.currentPage = 1;
       this.tableData = [];
       var url = QUESTION_API + "/question/" + pageNo + "/" + this.pageSize;
@@ -657,9 +657,9 @@ export default {
                 subQuestionMultipleRightAnswer.push(orderNum2);
               }
             }
-            subQuestion[
-              "quesAnswer"
-            ] = subQuestionMultipleRightAnswer.sort().toString();
+            subQuestion["quesAnswer"] = subQuestionMultipleRightAnswer
+              .sort()
+              .toString();
           }
         }
       }