fix: menu item's display problem in horizontal mode
This commit is contained in:
parent
2adbdc8830
commit
55551b2613
|
|
@ -156,7 +156,7 @@ export default {
|
|||
routes.forEach((item) => {
|
||||
openKeys.push(item.path)
|
||||
})
|
||||
this.collapsed ? this.cachedOpenKeys = openKeys : this.openKeys = openKeys
|
||||
this.collapsed || this.mode === 'horizontal' ? this.cachedOpenKeys = openKeys : this.openKeys = openKeys
|
||||
}
|
||||
},
|
||||
render (h) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue