|
|
|
@ -33,8 +33,8 @@ export default { |
|
|
|
activeMenu() { |
|
|
|
const route = this.$route |
|
|
|
const { meta, path } = route |
|
|
|
console.log('meta', meta) |
|
|
|
console.log('path', path) |
|
|
|
// console.log('meta', meta) |
|
|
|
// console.log('path', path) |
|
|
|
// if set path, the sidebar will highlight the path you set |
|
|
|
if (meta.activeMenu) { |
|
|
|
return meta.activeMenu |
|
|
|
@ -52,12 +52,12 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
console.log('sidebarRouters', this.sidebarRouters) |
|
|
|
// console.log('sidebarRouters', this.sidebarRouters) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleSelect(key, keyPath) { |
|
|
|
console.log('el-menu') |
|
|
|
console.log(key, keyPath) |
|
|
|
// console.log('el-menu') |
|
|
|
// console.log(key, keyPath) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|