Ver código fonte

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

Michael Wang 6 anos atrás
pai
commit
818209cd70
1 arquivos alterados com 4 adições e 0 exclusões
  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(