wx.redirectTo跳转下一个页面报错?

发布于 8 年前作者 lliang4670 次浏览最后编辑 8 年前来自 ask

在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 回复
min09
min091 楼6 年前

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

shaowei
shaowei2 楼6 年前

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