From e5c4832cc689748e177922a63f3216d9fb1ce9d7 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 21 Nov 2019 20:55:02 +0800 Subject: [PATCH] fix(h5): custom event arguments #1016 --- packages/vue-cli-plugin-uni/lib/h5/compiler-options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue-cli-plugin-uni/lib/h5/compiler-options.js b/packages/vue-cli-plugin-uni/lib/h5/compiler-options.js index 82e2f52a46..36cfbf08e0 100644 --- a/packages/vue-cli-plugin-uni/lib/h5/compiler-options.js +++ b/packages/vue-cli-plugin-uni/lib/h5/compiler-options.js @@ -17,11 +17,11 @@ $event = $handleWxsEvent($event); ${expr}($event, $getComponentDescriptor()) ` } else { - expr = expr + '($event)' + expr = expr + '(...arguments)' } } return ` -$event = $handleEvent($event); +arguments[0] = $event = $handleEvent($event); ${expr} ` } -- GitLab