Reference: https: //blog.csdn.net/fifteen718/article/details/82792099
Reference: https: //www.jb51.net/article/147420.htm
Reference: https: //juejin.im/post/5c83d5ac5188257e1c4dc9e7
method:
El-menu built using attribute default-active match the current route $ 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>
reference:
https://juejin.im/post/5c83d5ac5188257e1c4dc9e7
https://www.jb51.net/article/147420.htm