fix: linkage problem when menu collapsed #14

This commit is contained in:
iczer 2018-08-15 19:29:42 +08:00
parent 0ab1565fdf
commit 3e9e48565c

View File

@ -148,7 +148,7 @@ export default {
routes.forEach((item) => { routes.forEach((item) => {
openKeys.push(item.path) openKeys.push(item.path)
}) })
this.openKeys = openKeys this.collapsed ? this.cachedOpenKeys = openKeys : this.openKeys = openKeys
} }
}, },
render (h) { render (h) {