比如,页面1 跳转到 2,再到 3,在3页面,点击左上角的时候,可以回到1,而不是2。
有没有办法实现?
页面路由,如何删除掉上一页?Page routing, how to delete the previous page?
页面路由,如何删除掉上一页?比如,页面1 跳转到 2,再到 3,在3页面,点击左上角的时候,可以回到1,而不是2。
有没有办法实现?
For example, page 1 jumps to 2 and then to 3. On page 3, when you click the upper left corner, you can go back to 1 instead of 2. Is there any way to achieve it?
回答:
方案1:自定义导航栏,完美方案
方案2:页面2进入3时,关闭页面2(redirectTo),这样返回就回到1,最快方案,不通用
自定义导航栏
原文出处:页面路由,如何删除掉上一页?
https://developers.weixin.qq.com/miniprogram/dev/apioute/wx.navigateBack.html