pages/index/index.vue
@@ -46,6 +46,7 @@ this.showTabBar = data.data.showTabBar this.$refs.agencyPage.getContaminateList() }) this.share.title = this.title }, methods: { getData() { @@ -56,9 +57,12 @@ if (index === 2) { this.isShow = false this.title = '我的' this.share.title = this.title } if (index === 0) { this.isShow = true this.title = '首页' this.share.title = this.title this.$nextTick(() => { this.getData() })