更新课程详情刷新事件总线
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user