使用wx.redirectTo({})报错
app.json中的tagBar定义如下:
具体报错信息如下:
Object(env: Windows,mp,1.05.2204250; lib: 2.14.3)
errorReport @ WAServiceMainContext.js:2
thirdErrorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
c @ WASubContext.js?t=wechat&s=1651717537604&v=2.14.3:2
p @ WASubContext.js?t=wechat&s=1651717537604&v=2.14.3:2
(anonymous) @ WASubContext.js?t=wechat&s=1651717537604&v=2.14.3:2
value @ WASubContext.js?t=wechat&s=1651717537604&v=2.14.3:2
o @ WASubContext.js?t=wechat&s=1651717537604&v=2.14.3:2
(anonymous) @ WASubContext.js?t=wechat&s=1651717537604&v=2.14.3:2
已解决,通过使用redirectTo的fail和complete回调函数,打印提示fail page 'xxx' is not found得知,跳转的页面在app.json中未注册