修复混合导航,头部菜单没有选中状态问题

master
ggymm 3 years ago committed by GitHub
parent 816d19f7da
commit c2d2c2c686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/menu/menu.js

@ -235,7 +235,7 @@ export default {
let matches = this.$route.matched let matches = this.$route.matched
const route = matches[matches.length - 1] const route = matches[matches.length - 1]
let chose = this.routesMap[route.path] 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] chose = this.routesMap[chose.meta.highlight]
const resolve = this.$router.resolve({path: chose.fullPath}) const resolve = this.$router.resolve({path: chose.fullPath})
matches = (resolve.resolved && resolve.resolved.matched) || matches matches = (resolve.resolved && resolve.resolved.matched) || matches

Loading…
Cancel
Save