Skip to content
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

vant-aliapp 引入问题 Cannot read properties of undefined (reading 'split') #24

Open
yue001001 opened this issue Jul 5, 2022 · 2 comments

Comments

@yue001001
Copy link

image
image
image
求助!!!

@yue001001
Copy link
Author

uniapp开发支付宝小程序,vant-aliapp 作为自定义组件引入,引入后报组件报split错误,看类型为支付宝组件事件处理时抛出的
image

@oedob
Copy link

oedob commented Sep 9, 2022

引入vant-Alipay问题:undefined'split'
修改报错所在(unpackage/dist/dev/mp-alipay/common/vendor.js),改为var eventList = refProps['data-event-list'] ? refProps['data-event-list'] : ''.split(',');
原因:refProps['data-event-list']可能为null或undefined
缺点:可能每次编译都要改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants