mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
修复:混合导航,头部菜单没有选中状态问题
This commit is contained in:
parent
942b9ab567
commit
a3704743df
@ -235,7 +235,7 @@ export default {
|
||||
let matches = this.$route.matched
|
||||
const route = matches[matches.length - 1]
|
||||
let chose = this.routesMap[route.path]
|
||||
if (chose.meta && chose.meta.highlight) {
|
||||
if (chose && chose.meta && chose.meta.highlight) {
|
||||
chose = this.routesMap[chose.meta.highlight]
|
||||
const resolve = this.$router.resolve({path: chose.fullPath})
|
||||
matches = (resolve.resolved && resolve.resolved.matched) || matches
|
||||
|
Loading…
x
Reference in New Issue
Block a user