Skip to content

Commit 211a4a2

Browse files
committed
fix: use setupState
1 parent e3609f1 commit 211a4a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.setupState[event](...args)
197197
}
198198
}
199199
const fileProgress = () => {

src/components/uploader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
if (handler === true) {
103103
return
104104
}
105-
instance.ctx[handler](...args.slice(1))
105+
instance.setupState[handler](...args.slice(1))
106106
}
107107
args[0] = kebabCase(name)
108108
emit(...args)

0 commit comments

Comments
 (0)