Commit 53e8bf42 by 胡悦

fix(studyCenter): 修正事件监听名称错误

将事件监听名称从'showExamSubmitPopup'改为'showStudyPopup'以匹配实际功能
1 parent 5b9359bf
......@@ -51,7 +51,7 @@ export default {
},
created() {
// 在组件创建时就开始监听,确保事件能被捕获
uni.$on('showExamSubmitPopup', () => {
uni.$on('showStudyPopup', () => {
console.log('接收到考试提交弹窗事件')
if (this.currentTab === 1) {
this.$refs.failedExam.showExamPopup = true
......@@ -62,7 +62,7 @@ export default {
},
beforeDestroy() {
// 组件销毁前移除监听
uni.$off('showExamSubmitPopup')
uni.$off('showStudyPopup')
},
mounted() {
this.getExamStatistics()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!