Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 53e8bf42
authored
Dec 09, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(studyCenter): 修正事件监听名称错误
将事件监听名称从'showExamSubmitPopup'改为'showStudyPopup'以匹配实际功能
1 parent
5b9359bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
pages/common/studyCenter/myExam.vue
pages/common/studyCenter/myExam.vue
View file @
53e8bf4
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
},
},
created
()
{
created
()
{
// 在组件创建时就开始监听,确保事件能被捕获
// 在组件创建时就开始监听,确保事件能被捕获
uni
.
$on
(
'show
ExamSubmit
Popup'
,
()
=>
{
uni
.
$on
(
'show
Study
Popup'
,
()
=>
{
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
(
'show
ExamSubmit
Popup'
)
uni
.
$off
(
'show
Study
Popup'
)
},
},
mounted
()
{
mounted
()
{
this
.
getExamStatistics
()
this
.
getExamStatistics
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment