vant-aliapp 引入问题 Cannot read properties of undefined (reading 'split')
yue001001 opened this issue · comments
Big Shark commented
Big Shark commented
oedob commented
引入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
缺点:可能每次编译都要改