<el-menu :default-active="$route.path" class="el-menu-demo"
mode="horizontal" @select="handleSelect" background-color="#545c64"
text-color="#fff" active-text-color="#ffd04b" router>
<!-- <el-menu-item index="/index">首页</el-menu-item> -->
<el-menu-item index="/list">列表</el-menu-item>
<el-menu-item index="/memo">备注</el-menu-item>
</el-menu>
1.设置 ":default-active=$route.path" 在导航栏中高亮显示 当前路由地址
2.设置router 以 index 作为 path 进行路由跳转
3.设置index为路由地址