https://developers.weixin.qq.com/miniprogram/dev/apioute/wx.switchTab.html
在页面A跳转到页面B,在B页面跳转到页面C,BC来回切换n次,要回到A页面在B要点击n-1次
小程序路由局限性太多了,特别是页面跳转Mini program routing has too many limitations, especially page jumps
小程序路由局限性太多了,特别是页面跳转框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | 所有 | 微信iOS客户端 | 所有 | 所有 |
https://developers.weixin.qq.com/miniprogram/dev/apioute/wx.switchTab.html
在页面A跳转到页面B,在B页面跳转到页面C,BC来回切换n次,要回到A页面在B要点击n-1次
Framework type problem type API / component name terminal type wechat version basic library version applet bug all wechat IOS clients all https://developers.weixin.qq.com/miniprogram/dev/apioute/wx.switchTab.html Jump to page B on page a, jump to page C on page B, and BC switches back and forth n times. To return to page a, click all code fragments n-1 times on page B
回答:
又不是强制你要navigateTo,你在B页面redirectTo不行吗?这样只有A、C页面
你可以自己封装一下 wx.navigateTo api,如果目标页面在 getCurrentPages的上一个页面,就调用 wx.navigateBack
原文出处:小程序路由局限性太多了,特别是页面跳转
我记得你之前提过 我也回答过吧?
又来了?
只要回答就是不自己动手实践一下子?