Skip to content

Commit 62c1b7f

Browse files
committed
fix emit
1 parent dc4b7bd commit 62c1b7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/file.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export default {
193193
processResponse(args[2])
194194
return
195195
}
196-
instance.ctx[`${event}`](args)
196+
instance.ctx[`${event}`](...args)
197197
}
198198
}
199199
const fileProgress = () => {

src/components/uploader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102
if (handler === true) {
103103
return
104104
}
105-
instance.ctx[handler].apply(instance.ctx[handler], args.slice(1))
105+
instance.ctx[handler](...args.slice(1))
106106
}
107107
args[0] = kebabCase(name)
108-
emit.apply(instance.ctx, args)
108+
emit(...args)
109109
}
110110
111111
props.options.initialPaused = !props.autoStart

0 commit comments

Comments
 (0)