fix: menu item's display problem in horizontal mode
This commit is contained in:
@@ -156,7 +156,7 @@ export default {
|
|||||||
routes.forEach((item) => {
|
routes.forEach((item) => {
|
||||||
openKeys.push(item.path)
|
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) {
|
render (h) {
|
||||||
|
|||||||
Reference in New Issue
Block a user