提交 eb684380 编写于 作者: D DCloud_LXH

fix: click event error question/144073

上级 b5b0e409
......@@ -4,6 +4,7 @@ import {
isPlainObject,
parseStringStyle,
stringifyStyle,
hasOwn,
} from '@vue/shared'
import {
ON_WXS_INVOKE_CALL_METHOD,
......@@ -270,11 +271,14 @@ export function wrapperH5WxsEvent(
checkArgsLength = true
) {
if (eventValue) {
Object.defineProperty(event, 'instance', {
get() {
return getComponentDescriptor(instance!.proxy!, false)
},
})
if (!event.__instance) {
event.__instance = true
Object.defineProperty(event, 'instance', {
get() {
return getComponentDescriptor(instance!.proxy!, false)
},
})
}
const ownerVm = resolveOwnerComponentPublicInstance(
eventValue,
instance!,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册