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

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
+3 -1
View File
@@ -1 +1,3 @@
npm i --registry=http://25.12.10.69:8081/repository/aliyun-npm/
npm i --registry=http://25.12.10.69:8081/repository/aliyun-npm/
npm 淘宝源下载 npm config set registry https://registry.npmmirror.com
+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>