diff --git a/src/App.vue b/src/App.vue index 301c64b..2347a49 100644 --- a/src/App.vue +++ b/src/App.vue @@ -47,10 +47,10 @@ export default { }, async _initTabbar() { const userSetting = this._getUserSetting() - if (userSetting.teenagerEnable) { - uni.setTabBarItem({ index: 1, visible: false }) - } else { - uni.setTabBarItem({ index: 1, visible: true }) + if (userSetting.teenagerEnable) { + uni.setTabBarItem({ index: 1, visible: false }) + } else { + uni.setTabBarItem({ index: 1, visible: true }) } }, // 上报开屏广告 diff --git a/src/pages.json b/src/pages.json index 1c69301..f3205bd 100644 --- a/src/pages.json +++ b/src/pages.json @@ -291,7 +291,7 @@ } ] }, - "condition" : { //模式配置,仅开发期间生效 + "condition": { //模式配置,仅开发期间生效 "current": 0, //当前激活的模式(list 的索引项) "list": [ { @@ -301,4 +301,4 @@ } ] } -} +} \ No newline at end of file