fix: menu item's display problem in horizontal mode

This commit is contained in:
chenghx 2018-08-30 17:05:52 +08:00
parent 2adbdc8830
commit 55551b2613

View File

@ -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) {