diff --git a/packages/uni-app-plus/dist/index.js b/packages/uni-app-plus/dist/index.js index 569e6d0852b49ff355228ff66ab8ed11c42b714b..1c68a95c202039c288a30a8ae7ebe8f2400b8624 100644 --- a/packages/uni-app-plus/dist/index.js +++ b/packages/uni-app-plus/dist/index.js @@ -1147,10 +1147,10 @@ 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]))); } }); } diff --git a/packages/uni-mp-alipay/dist/index.js b/packages/uni-mp-alipay/dist/index.js index 842142f8f83df94fb16bbdcf3499032b5628777e..eee7f8896331efc8ed04d2f8205139d277ae5c98 100644 --- a/packages/uni-mp-alipay/dist/index.js +++ b/packages/uni-mp-alipay/dist/index.js @@ -1626,10 +1626,10 @@ 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]))); } }); } diff --git a/packages/uni-mp-baidu/dist/index.js b/packages/uni-mp-baidu/dist/index.js index 260808a72f7e4e57b9eea280f7c9ddd7adeb8be5..dcfbb123952411615b2864e28d7cf505775bd21c 100644 --- a/packages/uni-mp-baidu/dist/index.js +++ b/packages/uni-mp-baidu/dist/index.js @@ -1289,10 +1289,10 @@ 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]))); } }); } diff --git a/packages/uni-mp-qq/dist/index.js b/packages/uni-mp-qq/dist/index.js index 602df9c96659b85fdf3c7fb4d91e650aeed631dc..72972084e3824ab81023c9178af869945eeaa1c1 100644 --- a/packages/uni-mp-qq/dist/index.js +++ b/packages/uni-mp-qq/dist/index.js @@ -1205,10 +1205,10 @@ 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]))); } }); } diff --git a/packages/uni-mp-toutiao/dist/index.js b/packages/uni-mp-toutiao/dist/index.js index d2aa162948bd5fda47ed61fc6f15ba1438936368..07158bb61696a20bdb7e5d01c345be91d7cb4fd0 100644 --- a/packages/uni-mp-toutiao/dist/index.js +++ b/packages/uni-mp-toutiao/dist/index.js @@ -1297,10 +1297,10 @@ 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]))); } }); } diff --git a/packages/uni-mp-weixin/dist/index.js b/packages/uni-mp-weixin/dist/index.js index 65943fa31457f9c833a25aa602a883b3f6e7c8de..1ca1d0674a477ec3e01e2a11927fcdb3ac10819a 100644 --- a/packages/uni-mp-weixin/dist/index.js +++ b/packages/uni-mp-weixin/dist/index.js @@ -1162,10 +1162,10 @@ 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]))); } }); } diff --git a/packages/uni-quickapp-webview/dist/index.js b/packages/uni-quickapp-webview/dist/index.js index ac6f7ded3f30f5644031d35393f365cf4bf67336..4f07be5e4bccb4962f4d83b017b4f70fbb10a357 100644 --- a/packages/uni-quickapp-webview/dist/index.js +++ b/packages/uni-quickapp-webview/dist/index.js @@ -1147,10 +1147,10 @@ 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]))); } }); }