fix: 在页面加载时统一隐藏首页按钮

在多个页面的onLoad生命周期中添加this.$util.hideHomeButton()调用,确保页面加载时即隐藏首页按钮,避免显示不一致问题。同时调整category.vue中onShow的逻辑顺序。
This commit is contained in:
2026-01-23 11:54:31 +08:00
parent ceca4e5956
commit 29b5cfda6f
3 changed files with 6 additions and 3 deletions

View File

@@ -30,15 +30,14 @@ export default {
};
},
onLoad() {
this.$util.hideHomeButton();
//刷新多语言
this.$langConfig.refresh();
uni.hideTabBar();
this.getDiyInfo();
},
onShow() {
if (this.$refs.category) this.$refs.category[0].pageShow();
this.$util.hideHomeButton();
if (this.$refs.category) this.$refs.category[0].pageShow();
},
onUnload() {
if (!this.storeToken && this.$refs.login) this.$refs.login.cancelCompleteInfo();