Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
lareinayanyu committed Jan 14, 2025
1 parent 903fa52 commit 8fa525a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webpack-plugin/lib/template-compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ function processEvent (el, options) {
const extraStr = runtimeCompile && prefix === 'catch' ? `, "__mpx_${prefix}"` : ''
const parsedFunc = parseFuncStr(value, extraStr)
if (parsedFunc) {
const isCapture = modifiers.indexOf('capture') > -1
const isCapture = prefix.indexOf('capture') > -1
if (!eventConfigMap[type]) {
eventConfigMap[type] = {
configs: [],
Expand Down Expand Up @@ -1376,7 +1376,7 @@ function processEvent (el, options) {
for (const type in eventConfigMap) {
let needBubblingBind = false
let needCaptureBind = false
const { configs, captureConfigs, proxy } = eventConfigMap[type]
const { configs = [], captureConfigs = [], proxy } = eventConfigMap[type]
delete eventConfigMap[type]
if (proxy) {
needBubblingBind = true
Expand Down

0 comments on commit 8fa525a

Please sign in to comment.