소스 검색

心跳过期的消息(其实是所有消息),在考试结束页面关闭。

Michael Wang 5 년 전
부모
커밋
1220124ffe
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/features/OnlineExam/Examing/ExamingEnd.vue

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

@@ -90,6 +90,9 @@ export default {
     ...globalMapState(["user"]),
     // ...mapState(["exam"])
   },
+  created() {
+    this.$Message.destroy(); // 避免极端情况下,心跳过期的错误消息
+  },
   async mounted() {
     window._hmt.push(["_trackEvent", "考试结束页面", "进入页面"]);
     const examRecordDataId = this.$route.params.examRecordDataId;