Commit 53e8bf42 by 胡悦

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

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