fix: 在页面加载时统一隐藏首页按钮
在多个页面的onLoad生命周期中添加this.$util.hideHomeButton()调用,确保页面加载时即隐藏首页按钮,避免显示不一致问题。同时调整category.vue中onShow的逻辑顺序。
This commit is contained in:
@@ -252,6 +252,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.$util.hideHomeButton();
|
||||
this.$langConfig.refresh();
|
||||
this.$api.sendRequest({
|
||||
url: '/api/member/personnel',
|
||||
|
||||
@@ -86,6 +86,9 @@ export default {
|
||||
nsNewGift
|
||||
},
|
||||
mixins: [diyJs, indexJs],
|
||||
onLoad() {
|
||||
this.$util.hideHomeButton();
|
||||
},
|
||||
onShow() {
|
||||
this.$util.hideHomeButton();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user