在tabBar页面下的switchTab 和 redirectTo跳转问题
调试基础库版本:1.9.94 两个问题: 1、tabBar里有两个页面:首页index和用户中心user,点击user页面时判断没有登录, 则用wx.redirectTo跳转至二级页面login,在页面login里定义登录,获取后,用wx.redirectTo跳转至user页面跳转不了, 只能用wx.switchTab跳转,如下: console.log("有账号,跳转至用户中心") wx.switchTab({url: '../user/user',}) //wx.redirectTo({ url: "../user/user" }) //跳转不过去 不知道为什么? 2、用wx.switchTab跳转后,能成功显示,但工具会报错, 如下: 有账号,跳转至用户中心 user.js? [sm]:9 ---user onLoad--- user.js? [sm]:24 ---user onShow--- VM2998:1 Thu Mar 22 2018 17:49:28 GMT+0800 (中国标准时间) 渲染层错误 VM2998:2 Expected updated data but get first rendering data (anonymous) @ VM2998:2 VM3000:1 Thu Mar 22 2018 17:49:28 GMT+0800 (中国标准时间) 渲染层错误 VM3000:2 webviewScriptError Expected updated data but get first rendering data;Expected updated data but get first rendering data Error: Expected updated data but get first rendering data at m (http://127.0.0.1:53192/__pageframe__/__dev__/WAWebview.js:20:26427) at http://127.0.0.1:53192/__pageframe__/__dev__/WAWebview.js:20:25581 at http://127.0.0.1:53192/__pageframe__/__dev__/WAWebview.js:20:30469 at c.<anonymous> (http://127.0.0.1:53192/__pageframe__/__dev__/WAWebview.js:3:25976) at c.emit (http://127.0.0.1:53192/__pageframe__/__dev__/WAWebview.js:4:15192) at http://127.0.0.1:53192/__pageframe__/__dev__/WAWebview.js:5:24301 at e.(anonymous function) (http://127.0.0.1:53192/__pageframe__/__dev__/WAWebview.js:5:8674) at d (http://127.0.0.1:53192/__pageframe__/pageframe.html:17:2409) at f.a.registerCallback (http://127.0.0.1:53192/__pageframe__/pageframe.html:17:2557) at m.forEach (http://127.0.0.1:53192/__pageframe__/pageframe.html:17:858) (anonymous) @ VM3000:2 user.js? [sm]:21 ---user onReady--- 麻烦大神解答下!!!