a***@gmail.com
a***@gmail.com
  • 发布:2024-06-21 10:50
  • 更新:2024-06-21 10:50
  • 阅读:126

抖音小程序 $option,$root的undefined报错

分类:uni-app

小程序之前只投放了微信,在投放抖音的时候遇到一些框架中的报错,只有ios用户会触发
目前我本地和真机都复线不出来
1.TypeError: undefined is not an object (evaluating 'a.$options') @common/vendor
2.TypeError: undefined is not an object (evaluating 't.$root') xt@common/vendor
看了一下mp-toutiao的代码,主要是

if (handlerCtx.$options.generic) { // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots  
     handlerCtx = getContextVm(handlerCtx) || handlerCtx;  
 }
vm.$root = parentVm.$root; 

这两块地方
小程序在线上跑,报错的用户比例在0.1%左右,会阻塞用户的行为
目前使用的mp-toutiao version是2.0.1-33920220208001

2024-06-21 10:50 负责人:无 分享
已邀请:

要回复问题请先登录注册