提交 b006ae0f 编写于 作者: fxy060608's avatar fxy060608

feat(v3): add uni-view-update

上级 bb773f8f
......@@ -73,8 +73,9 @@ const NATIVE_COMPONENTS = ['Camera', 'LivePlayer', 'LivePusher', 'Map', 'Video']
function updateView () {
const pages = getCurrentPages()
pages.length && broadcast(
pages[0].$vm,
const pageVm = pages[0] && pages[0].$vm
pageVm && broadcast(
pageVm,
NATIVE_COMPONENTS,
'uni-view-update'
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册