更新课程详情刷新事件总线

This commit is contained in:
2025-07-15 15:12:00 +08:00
parent 56b4ea6533
commit 486a24ecdb
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -132,9 +132,13 @@
uni.$on('refresh_comment_data', () => {
commentRef.value.getData();
})
uni.$on('refresh_course_detail_data', () => {
getData();
})
});
onUnload(() => {
uni.$off('refresh_comment_data')
uni.$off('refresh_course_detail_data')
});
</script>