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

Merge branch 'v3' of https://github.com/dcloudio/uni-app into v3

......@@ -70,15 +70,20 @@ function initGlobalListeners () {
})
})
plus.globalEvent.addEventListener('plusMessage', function (e) {
if (process.env.NODE_ENV !== 'production') {
console.log('[plusMessage]:[' + Date.now() + ']' + JSON.stringify(e.data))
}
if (e.data && e.data.type) {
const type = e.data.type
consumePlusMessage(type, e.data.args || {})
}
})
plus.globalEvent.addEventListener('plusMessage', onPlusMessage)
// nvue webview post message
plus.globalEvent.addEventListener('WebviewPostMessage', onPlusMessage)
}
function onPlusMessage (e) {
if (process.env.NODE_ENV !== 'production') {
console.log('[plusMessage]:[' + Date.now() + ']' + JSON.stringify(e.data))
}
if (e.data && e.data.type) {
const type = e.data.type
consumePlusMessage(type, e.data.args || {})
}
}
function initAppLaunch (appVm) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册