소스 검색

fix: 隐藏底部tabbar

zhangyuhan 5 년 전
부모
커밋
12d9868b9b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/views/main/Home.vue

+ 5 - 0
src/views/main/Home.vue

@@ -41,6 +41,7 @@ import { mapState, mapMutations, mapActions } from 'vuex'
 import { PullRefresh, List, Toast } from 'vant'
 import Empty from '@/components/common/Empty.vue'
 import JImage from '@/components/common/Image.vue'
+import { hiddenBottomBar } from '@/utils/globalFunctionsForApp.ts'
 @Component({
   name: 'home',
   components: {
@@ -97,6 +98,10 @@ export default class Home extends Vue {
     this.disWord = this.$route.query.disWord
   }
 
+  mounted () {
+    hiddenBottomBar(0)
+  }
+
   activated () {
     if (!this.$route.meta.isBack) {
       for (const key in this.defaultListState) {