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