Browse Source

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

Michael Wang 5 năm trước cách đây
mục cha
commit
1220124ffe
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;