Browse Source

fix 极端情况下查询成绩不停止

Michael Wang 6 năm trước cách đây
mục cha
commit
818209cd70
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/features/OnlineExam/Examing/ExamingEnd.vue

+ 4 - 0
src/features/OnlineExam/Examing/ExamingEnd.vue

@@ -83,6 +83,10 @@ export default {
     const examId = this.$route.params.examId;
     this.waitingNumber = 0;
     const f = async () => {
+      if (this.$route.name !== "ExamingEnd") {
+        // 非成绩页,不在查询成绩
+        return;
+      }
       try {
         this.getResultTimes = this.getResultTimes + 1;
         const examResult = (await this.$http.get(