一.参考页面
1.https://blog.csdn.net/qq_34117170/article/details/80758575
1. 通过代码跳转页面无法选中,例如
this.$router.push({ name: 'invoiceApplyList' })
1-1解决办法
<el-menu class="sidebar-el-menu" :default-active="curRoute" ></el-menu>
watch: {
'$router': 'curRoute'
},
computed: {
curRoute () {
let path = this.$route.path
return path
}
},