更新课程详情刷新事件总线
This commit is contained in:
+3
-1
@@ -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
|
||||
@@ -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