-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支付宝原生插件使用时如何正确传入onXXX事件 #17042
Comments
This was referenced Dec 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
支付宝小程序
小程序基础库: 2.9.30
使用框架: Vue 3
复现步骤
taro vue3开发支付宝小程序,引入了支付宝的原生组件,但是由于支付宝是通过onXXX来传函数到内部去只执行,相当于vue3的emits,vue文件中通过@xxx="handleData"去触发一个函数
期望结果
能够正确触发handleData函数
实际结果
出现报错TypeError: Cannot read properties of undefined (reading 'type')
at Object._eventHandler [as eh] (taro.js:4954:9)
at e.invokeMethod (af-appx.worker.min.js:6:423501)
at e.invokeTargetMethodWithArgs (af-appx.worker.min.js:6:866931)
at e.callEvent (af-appx.worker.min.js:6:214321)
at Object._h [as V] (af-appx.worker.min.js:6:470529)
at Object.k__2 [as onChufa] (runtime.js:8:1)
at Object.touchStart (index.js:88:18)
at e.invoke (af-appx.worker.min.js:6:715807)
at e.invokePublicMethod (af-appx.worker.min.js:6:709660)
at a0 (af-appx.worker.min.js:6:696186)
环境信息
The text was updated successfully, but these errors were encountered: