提交 2cf84bcb 编写于 作者: Q qiang

fix: 修复部分情况小程序事件报错的问题

上级 48157c4f
......@@ -287,7 +287,7 @@ function wrapper (event) {
event.target = event.target || {}
if (!hasOwn(event, 'detail')) {
if (!hasOwn(event, 'detail') || !event.detail) {
event.detail = {}
}
......
......@@ -59,7 +59,7 @@ export function initSpecialMethods (mpInstance) {
specialMethods.forEach(method => {
if (isFn(mpInstance.$vm[method])) {
mpInstance[method] = function (event) {
if (!hasOwn(event, 'detail')) {
if (!hasOwn(event, 'detail') || !event.detail) {
event.detail = {}
}
if (!('markerId' in event.detail) && 'markerId' in event) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册