Commit 2b812d5f authored by 杨奕's avatar 杨奕 Committed by FuryBean

fix header background (#1407)

parent 3502bf0d
......@@ -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' })`;
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment