收藏
回答

小程序调用setData之后页面不进行渲染,setData 回调不执行

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 微信安卓客户端 8.0.1;7.0.22 2.16.0;2.15.0

现象:小程序调用setData之后页面不进行渲染,setData 回调未执行、wx.nextTick未执行

setdata json格式大小7k左右

手机型号:vivo Y30 系统10 微信8.0.1

微信号:3月18号16点30分左右,上传日志

——————————————————————————————

手机型号:vivo X21s 系统8.0.0 微信7.0.22

微信号:3月22号14点30分左右,上传日志

代码逻辑:

this.setData({
  teamInfo,headInfo,floatData,workStation,cardInfo,InterrogateInfo,
  baseFlowId: baseInfo.baseFlowId,
  acceptorId: baseInfo.acceptorId,
  isShowPage:true,
  unReadCnt: unReadCnt
},()=> {
  //上报渲染用时
  const timeAfterRender = new Date().getTime();
  const renderTime = timeAfterRender - timeBeforeRender;
  util.reportPerformance(2002,renderTime) 
  wxLog.info(`dprelation_setDataCallback_userId${User.userId},isShowPage:${this.data.isShowPage}`);
})
wx.nextTick(()=>{
  this.setRenderLog()
})
最后一次编辑于  2021-03-23
回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容
问题标签