From c207b69953cc828441f48076156e5bee50ed9709 Mon Sep 17 00:00:00 2001 From: qiang Date: Mon, 17 Aug 2020 17:48:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E9=83=A8=E5=88=86=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=97=A0=E5=8F=82=E6=95=B0=E6=97=B6=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20fixed=20#2021?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/runtime/wrapper/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/runtime/wrapper/util.js b/src/core/runtime/wrapper/util.js index f826a183ef..0072711984 100644 --- a/src/core/runtime/wrapper/util.js +++ b/src/core/runtime/wrapper/util.js @@ -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]))) } }) } -- GitLab