elment 的NavMenu 导航菜单学习
参考:https://blog.csdn.net/fifteen718/article/details/82792099
参考:https://www.jb51.net/article/147420.htm
参考:https://juejin.im/post/5c83d5ac5188257e1c4dc9e7
方法:
利用el-menu 自带属性 default-active 匹配当前路由 $route.path
<el-menu :unique-opened="true" :router="true" :collapse="isCollapse" class="elMenu" text-color="#fff" background-color="#37363B" active-text-color="#ffd04b" :default-active="$route.path"> </el-menu>
参考:
https://juejin.im/post/5c83d5ac5188257e1c4dc9e7
https://www.jb51.net/article/147420.htm