Menu: menu-item 高亮应判断 index !== null

pull/21635/head
Gary4j 2022-01-14 16:46:11 +08:00 committed by GitHub
parent 473ef53f93
commit f8c3eae104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
},
computed: {
active() {
return this.index === this.rootMenu.activeIndex;
return this.index !===null && this.index === this.rootMenu.activeIndex;
},
hoverBackground() {
return this.rootMenu.hoverBackground;