页面路由,如何删除掉上一页?

小程序 文章 2021-03-08 20:01 444 0 全屏看文

AI助手支持GPT4.0

页面路由,如何删除掉上一页?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?

回答:

|G.XIAO|:

方案1:自定义导航栏,完美方案

方案2:页面2进入3时,关闭页面2(redirectTo),这样返回就回到1,最快方案,不通用



Mr.Zhao:

自定义导航栏

-EOF-

AI助手支持GPT4.0