https://blog.csdn.net/weixin_35798126/article/details/74080044
<el-row class="tac">
<el-col :span="12">
<h5>妈妈钱包</h5>
<el-menu
:default-active="$route.path"
class="el-menu-vertical-demo"
router
>
<el-menu-item index="/userList" >
<i class="el-icon-menu"></i>
<span slot="title">用户信息</span>
</el-menu-item>
<el-menu-item index="/changeAccountManager" >
<i class="el-icon-menu"></i>
<span slot="title">批量变更客户经理</span>
</el-menu-item>
<el-menu-item index="/breatheData" >
<i class="el-icon-menu"></i>
<span slot="title">呼出数据</span>
</el-menu-item>
</el-menu>
</el-col>
</el-row>
注意的地方:
:default-active="$route.path" index="/userList" 点击导航栏跳转路由 记得加上router