Explorar o código

fix header background (#1407)

杨奕 %!s(int64=8) %!d(string=hai) anos
pai
achega
2b812d5fe2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/components/header.vue

+ 1 - 1
examples/components/header.vue

@@ -228,7 +228,7 @@
     },
     watch: {
       '$route.path'() {
-        this.isHome = this.$route.name === 'home';
+        this.isHome = /^home/.test(this.$route.name);
         this.headerStyle.backgroundColor = `rgba(32, 160, 255, ${ this.isHome ? '0' : '1' })`;
       }
     },