使用wx.redirectTo进行跳转时,默认是带有返回首页按钮的。
解决方案:
在onShow里执行wx.hideHomeButton(),就可以隐藏返回首页按钮。
onShow() {
if (wx.canIUse('hideHomeButton')) {
wx.hideHomeButton()
}
},
使用wx.redirectTo进行跳转时,默认是带有返回首页按钮的。
在onShow里执行wx.hideHomeButton(),就可以隐藏返回首页按钮。
onShow() {
if (wx.canIUse('hideHomeButton')) {
wx.hideHomeButton()
}
},