Skip to content

Commit 4884364

Browse files
committed
bugfix: #1355
1 parent 5d49fb9 commit 4884364

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/platforms/mp/runtime/events.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,14 @@ function getWebEventByMP (e) {
8181
return event
8282
}
8383

84+
85+
const KEY_SEP = '_'
8486
export function handleProxyWithVue (e) {
8587
const rootVueVM = this.$root
8688
const { type, target = {}, currentTarget } = e
8789
const { dataset = {} } = currentTarget || target
8890
const { comkey = '', eventid } = dataset
89-
const vm = getVM(rootVueVM, comkey.split(','))
91+
const vm = getVM(rootVueVM, comkey.split(KEY_SEP))
9092

9193
if (!vm) {
9294
return

0 commit comments

Comments
 (0)