yangc 8 年之前
父节点
当前提交
bc3f1a3778
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 1
      components/mobile/MobileHeader.vue
  2. 0 1
      components/mobile/brand/BrandCenter.vue

+ 1 - 1
components/mobile/MobileHeader.vue

@@ -104,7 +104,7 @@
         return this.$store.state.componentDetail.detail.data
       },
       showHeader () {
-        return this.$route.path !== '/'
+        return this.$route.path !== '/' || !this.$route.path || this.$route.path === ''
       },
       showSearch () {
         return this.$route.path !== '/' && !this.$route.path.startsWith('/mobile/search')

+ 0 - 1
components/mobile/brand/BrandCenter.vue

@@ -86,7 +86,6 @@
     },
     methods: {
       onScroll () {
-        console.log(112)
         if (this.$route.path.startsWith('/mobile/brand/brandCenter')) {
           let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
           this.isScrolled = scrolled > 0