提交 ad79c36f 编写于 作者: Q qiang

fix: 修复小程序部分自定义事件无参数时报错的问题 fixed #2021

上级 9cd0c2c4
......@@ -549,10 +549,10 @@ export function handleEvent (event) {
eventArray[2],
isCustom,
methodName
) || []
)
// 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
// eslint-disable-next-line no-sparse-arrays
ret.push(handler.apply(handlerCtx, params.concat([, , , , , , , , , , event])))
ret.push(handler.apply(handlerCtx, (Array.isArray(params) ? params : []).concat([, , , , , , , , , , event])))
}
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册