提交 ef3527b4 编写于 作者: d-u-a's avatar d-u-a

fix: v3 webview 组件无法收到 @message 的Bug

上级 aa917d3a
......@@ -5,7 +5,7 @@ function onMessage (pageId, arg) {
return
}
if (!page.$page.meta.isNVue) {
const target = page.$vm._$vd.elements.find(target => target.tagName === 'web-view' && target.events['message'])
const target = page.$vm._$vd.elements.find(target => target.type === 'web-view' && target.events['message'])
if (!target) {
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册