1、绑定路由路径
:default-active="$route.path"
2、index=“路由路径”
<el-menu menu-trigger="hover" style="left: -15%; position: relative;border-bottom: none;"
popper-append-to-body="false" icon="iconfont iconxiala" ref="NavMenu"
background-color="#0C48E5" text-color="#fff" active-text-color="#ffd04b" :default-active='$route.path' mode="horizontal" >
<template v-for="(router, routerIndex) in routess">
<template v-if="router.children">
<el-submenu :index="router.path" width="140px" class="plm">
</el-submenu>
</template>
</template>
</el-menu>