wx.redirectTo跳转下一个页面报错?
发布于 6 年前 作者 lliang 4466 次浏览 来自 问答

在A页面退出登录,代码清除相关登录信息后,调用wx.redirectTo 跳转到B页面,但是会报如下错误:

webviewScriptError

Expected updated data but get first rendering data

Error: Expected updated data but get first rendering data

导致B页面闪动了了两次,感觉像进入B页面两次,点击一次B页面的方法触发3次

2 回复

没赋值就调用?试试wx.reLaunch

你好,麻烦具体描述问题流程,提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部