在用vue开发一套系统,用到elementui的el-menu做左侧菜单树
目前的效果如下:
实际情况是“用户管理”这个下面是没有子菜单的,但为什么会有下拉箭头的出现呢?找半天,没有研究怎么解决掉。或者在没有子菜单的情况下,如何去掉右侧的下拉箭头
关键的菜单树代码:
<el-scrollbar :class="theme" >
<el-menu
:background-color="backgroundcolor"
:text-color="textcolor"
mode="vertical"
>
<sidebar-item
v-for="(route,index) in sidebarRouters"
:key="route.path+index"
:item="route"
>
</sidebar-item>
</el-menu>
</el-scrollbar>