mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
fix header background (#1407)
This commit is contained in:
parent
3502bf0dcd
commit
2b812d5fe2
@ -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' })`;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user