参考
https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#window
在 app.json 中设置 `homeButton` ,
{
"window": {
"navigationBarBackgroundColor": "@navigationBarBackgroundColor",
"navigationBarTextStyle": "@navigationBarTextStyle",
"navigationBarTitleText": "",
"navigationStyle": "default",
"homeButton": false,
"backgroundColor": "@backgroundColor",
"backgroundTextStyle": "@backgroundTextStyle",
"backgroundColorTop": "@backgroundColorTop",
"backgroundColorBottom": "@backgroundColorBottom",
"visualEffectInBackground": "hidden"
}
}
界面左上角仍然显示 home 图标。类似地,页面配置中的 `homeButton` 也未生效。
控制台发出这样的警告 感觉就是压根就没这个属性啊 求官方回答
在当前页面使用 wx.hideHomeButton
出现home的界面是否为非首页、非页面栈最底层页面或非 tabbar 内页面