Skip to content

Commit

Permalink
fix(h5): custom event arguments #1016
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Nov 21, 2019
1 parent 6cfba0e commit e5c4832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-cli-plugin-uni/lib/h5/compiler-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
`
}
Expand Down

0 comments on commit e5c4832

Please sign in to comment.