推出考试销毁提交事件

This commit is contained in:
joylink_fanyuhong 2024-04-11 19:04:50 +08:00
parent 5666af96cc
commit 5212b6417a

View File

@ -93,6 +93,7 @@ export default {
beforeDestroy() { beforeDestroy() {
this.$store.dispatch('trainingNew/setExamSwitch', false); this.$store.dispatch('trainingNew/setExamSwitch', false);
if (this.examInterval) { clearInterval(this.examInterval); } if (this.examInterval) { clearInterval(this.examInterval); }
EventBus.$off('trainExamSubmit');
}, },
mounted() { mounted() {
EventBus.$on('trainExamSubmit', (data) => { EventBus.$on('trainExamSubmit', (data) => {